| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 void DesktopRect::Translate(int32_t dx, int32_t dy) { | 40 void DesktopRect::Translate(int32_t dx, int32_t dy) { |
| 41 left_ += dx; | 41 left_ += dx; |
| 42 top_ += dy; | 42 top_ += dy; |
| 43 right_ += dx; | 43 right_ += dx; |
| 44 bottom_ += dy; | 44 bottom_ += dy; |
| 45 } | 45 } |
| 46 | 46 |
| 47 void DesktopRect::Extend(int32_t left_offset, |
| 48 int32_t top_offset, |
| 49 int32_t right_offset, |
| 50 int32_t bottom_offset) { |
| 51 left_ -= left_offset; |
| 52 top_ -= top_offset; |
| 53 right_ += right_offset; |
| 54 bottom_ += bottom_offset; |
| 55 } |
| 56 |
| 47 } // namespace webrtc | 57 } // namespace webrtc |
| 48 | 58 |
| OLD | NEW |