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

Unified Diff: remoting/host/window_capturer_screen_wrapper.h

Issue 422503004: Adding ability to stream windows and inject events to them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: uploaded to remove lint errors Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/window_capturer_screen_wrapper.h
diff --git a/remoting/host/window_capturer_screen_wrapper.h b/remoting/host/window_capturer_screen_wrapper.h
new file mode 100644
index 0000000000000000000000000000000000000000..1d13767ac73bf1a75a6f84d7ce8cbe7ed1eed0b5
--- /dev/null
+++ b/remoting/host/window_capturer_screen_wrapper.h
@@ -0,0 +1,38 @@
+#include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
Lambros 2014/07/30 00:14:50 Missing copyright notice.
ronakvora do not use 2014/07/30 20:55:37 Done.
+#include "third_party/webrtc/modules/desktop_capture/window_capturer.h"
+
+namespace remoting {
+
+class WindowCapturerScreenWrapper : public ::webrtc::ScreenCapturer {
+ public:
+ explicit WindowCapturerScreenWrapper();
Lambros 2014/07/30 00:14:50 "explicit" not needed.
ronakvora do not use 2014/07/30 20:55:37 Done.
+ virtual ~WindowCapturerScreenWrapper();
+
+ /*
+ // WindowCapturer interface.
+ virtual bool GetWindowList(WindowList* windows);
+ virtual bool BringSelectedWindowToFront();
+ */
+ // WindowCapturer interface.
Lambros 2014/07/30 00:14:50 This is confusing, because this class doesn't actu
ronakvora do not use 2014/07/30 20:55:37 Done.
+ virtual bool SelectWindow(webrtc::WindowId id);
+ virtual void SetWindow(const webrtc::DesktopCaptureOptions& options);
+
+ // DesktopCapturer interface.
+ virtual void Start(DesktopCapturer::Callback* callback) OVERRIDE;
+ virtual void Capture(const webrtc::DesktopRegion& region) OVERRIDE;
+
+ // webrtc::ScreenCapturer interface.
+ virtual void SetMouseShapeObserver(
+ MouseShapeObserver* mouse_shape_observer) OVERRIDE;
+ virtual bool GetScreenList(ScreenList* screens) OVERRIDE;
+ virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE;
+ static WindowCapturerScreenWrapper* Create();
Lambros 2014/07/30 00:14:50 This method isn't needed. Remove it, and update th
ronakvora do not use 2014/07/30 20:55:37 Done.
+
+ private:
+ webrtc::WindowCapturer* window_capturer_;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowCapturerScreenWrapper);
+};
+
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698