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

Unified Diff: remoting/host/desktop_shape_tracker.h

Issue 83183007: Add DesktopShapeTracker with implementation for Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/host/desktop_shape_tracker_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_shape_tracker.h
diff --git a/remoting/host/desktop_shape_tracker.h b/remoting/host/desktop_shape_tracker.h
new file mode 100644
index 0000000000000000000000000000000000000000..5abe1f28c00fcb6a44fc791366fc4709e9887123
--- /dev/null
+++ b/remoting/host/desktop_shape_tracker.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_DESKTOP_SHAPE_TRACKER_H_
+#define REMOTING_HOST_DESKTOP_SHAPE_TRACKER_H_
+
+#include "base/memory/scoped_ptr.h"
+
+namespace webrtc {
+class DesktopCaptureOptions;
+class DesktopRegion;
+} // namespace webrtc
+
+namespace remoting {
+
+// Tracks changes in the area of the desktop that is occupied by windows.
+class DesktopShapeTracker {
+ public:
+ static scoped_ptr<DesktopShapeTracker> Create(
+ webrtc::DesktopCaptureOptions options);
+
+ DesktopShapeTracker() {}
+ virtual ~DesktopShapeTracker() {}
+
+ // Recalculates the desktop shape, as returned by desktop_shape();
+ virtual void RefreshDesktopShape() = 0;
+
+ // Returns a reference to the most recently capture desktop shape.
+ virtual const webrtc::DesktopRegion& desktop_shape() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DesktopShapeTracker);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_DESKTOP_SHAPE_TRACKER_H_
« no previous file with comments | « no previous file | remoting/host/desktop_shape_tracker_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698