Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: webrtc/modules/desktop_capture/desktop_region.h

Issue 1323453003: Fixes for PNaCl build of remoting client plugin in chromium. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // is used as the key so that rows are always ordered by their position. The 60 // is used as the key so that rows are always ordered by their position. The
61 // map stores pointers to make Translate() more efficient. 61 // map stores pointers to make Translate() more efficient.
62 typedef std::map<int, Row*> Rows; 62 typedef std::map<int, Row*> Rows;
63 63
64 public: 64 public:
65 // Iterator that can be used to iterate over rectangles of a DesktopRegion. 65 // Iterator that can be used to iterate over rectangles of a DesktopRegion.
66 // The region must not be mutated while the iterator is used. 66 // The region must not be mutated while the iterator is used.
67 class Iterator { 67 class Iterator {
68 public: 68 public:
69 explicit Iterator(const DesktopRegion& target); 69 explicit Iterator(const DesktopRegion& target);
70 ~Iterator();
70 71
71 bool IsAtEnd() const; 72 bool IsAtEnd() const;
72 void Advance(); 73 void Advance();
73 74
74 const DesktopRect& rect() const { return rect_; } 75 const DesktopRect& rect() const { return rect_; }
75 76
76 private: 77 private:
77 const DesktopRegion& region_; 78 const DesktopRegion& region_;
78 79
79 // Updates |rect_| based on the current |row_| and |row_span_|. If 80 // Updates |rect_| based on the current |row_| and |row_span_|. If
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // merged row. 158 // merged row.
158 void MergeWithPrecedingRow(Rows::iterator row); 159 void MergeWithPrecedingRow(Rows::iterator row);
159 160
160 Rows rows_; 161 Rows rows_;
161 }; 162 };
162 163
163 } // namespace webrtc 164 } // namespace webrtc
164 165
165 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_ 166 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_REGION_H_
166 167
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/desktop_frame.h ('k') | webrtc/modules/desktop_capture/desktop_region.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698