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 |
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_ | 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_ |
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_ | 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
| 17 #include "webrtc/base/constructormagic.h" |
17 #include "webrtc/modules/desktop_capture/desktop_geometry.h" | 18 #include "webrtc/modules/desktop_capture/desktop_geometry.h" |
18 #include "webrtc/rtc_base/constructormagic.h" | |
19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 // DesktopRegion represents a region of the screen or window. | 23 // DesktopRegion represents a region of the screen or window. |
24 // | 24 // |
25 // Internally each region is stored as a set of rows where each row contains one | 25 // Internally each region is stored as a set of rows where each row contains one |
26 // or more rectangles aligned vertically. | 26 // or more rectangles aligned vertically. |
27 class DesktopRegion { | 27 class DesktopRegion { |
28 private: | 28 private: |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // merged row. | 160 // merged row. |
161 void MergeWithPrecedingRow(Rows::iterator row); | 161 void MergeWithPrecedingRow(Rows::iterator row); |
162 | 162 |
163 Rows rows_; | 163 Rows rows_; |
164 }; | 164 }; |
165 | 165 |
166 } // namespace webrtc | 166 } // namespace webrtc |
167 | 167 |
168 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_ | 168 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_ |
169 | 169 |
OLD | NEW |