Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
|
Wez
2014/08/01 23:41:55
Lose the (c), please.
ronakvora do not use
2014/08/05 19:54:51
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" | |
| 6 #include "third_party/webrtc/modules/desktop_capture/window_capturer.h" | |
|
Wez
2014/08/01 23:41:55
You don't need this include, I don't think; just f
ronakvora do not use
2014/08/05 19:54:51
Done. Added the include to the cc file.
| |
| 7 | |
| 8 namespace remoting { | |
| 9 | |
| 10 // This class wraps a WindowCapturer instance. The reason we do this | |
| 11 // is becaues the remoting_me2me_host uses a screen capturer interface. | |
| 12 // Instead of adding support for a window_capturer_interface, which | |
| 13 // is not really needed, we simply wrap a WindowCapturer inside of a | |
| 14 // ScreenCapturer and delegate messages sent to this class to the | |
| 15 // wrapped WindowCapturer. | |
|
Wez
2014/08/01 23:41:55
Do you actually need to proxy these calls through?
Wez
2014/08/01 23:41:55
You shouldn't need this class at all, in fact; the
ronakvora do not use
2014/08/05 19:54:51
Yep. The original plan was to change the interface
ronakvora do not use
2014/08/05 19:54:51
Done.
| |
| 16 class WindowCapturerScreenWrapper : public ::webrtc::ScreenCapturer { | |
|
Wez
2014/08/01 23:41:55
Lose the :: before webrtc.
ronakvora do not use
2014/08/05 19:54:51
Done.
| |
| 17 public: | |
| 18 WindowCapturerScreenWrapper(); | |
| 19 virtual ~WindowCapturerScreenWrapper(); | |
| 20 | |
| 21 // WindowCapturer interface. | |
|
Wez
2014/08/01 23:41:55
This class doesn't provide the WindowCapturer, int
ronakvora do not use
2014/08/05 19:54:51
Removed. I used to have all the methods of WindowC
| |
| 22 bool SelectWindow(webrtc::WindowId id); | |
| 23 void SetWindow(const webrtc::DesktopCaptureOptions& options); | |
|
Wez
2014/08/01 23:41:55
What's the differencing between "selecting" and "s
ronakvora do not use
2014/08/05 19:54:51
The SetWindow just creates the wrapped WindowCaptu
| |
| 24 | |
| 25 // DesktopCapturer interface. | |
|
Wez
2014/08/01 23:41:55
nit: webrtc::DesktopCapturer for consistency, or j
ronakvora do not use
2014/08/05 19:54:51
Done.
| |
| 26 virtual void Start(DesktopCapturer::Callback* callback) OVERRIDE; | |
| 27 virtual void Capture(const webrtc::DesktopRegion& region) OVERRIDE; | |
| 28 | |
| 29 // webrtc::ScreenCapturer interface. | |
| 30 virtual void SetMouseShapeObserver( | |
| 31 MouseShapeObserver* mouse_shape_observer) OVERRIDE; | |
| 32 virtual bool GetScreenList(ScreenList* screens) OVERRIDE; | |
| 33 virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE; | |
| 34 | |
| 35 private: | |
| 36 webrtc::WindowCapturer* window_capturer_; | |
|
Wez
2014/08/01 23:41:55
scoped_ptr<WindowCapturer>
ronakvora do not use
2014/08/05 19:54:51
Done.
| |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(WindowCapturerScreenWrapper); | |
| 39 }; | |
| 40 | |
| 41 | |
| 42 } // namespace remoting | |
| OLD | NEW |