OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | |
Lambros
2014/07/30 00:14:50
This should be the normal Chromium copyright. Anyt
ronakvora do not use
2014/07/30 20:55:37
Done.
| |
3 * | |
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 | |
6 * tree. An additional intellectual property rights grant can be found | |
7 * in the file PATENTS. All contributing project authors may | |
8 * be found in the AUTHORS file in the root of the source tree. | |
9 */ | |
10 | |
11 #include "remoting/host/window_capturer_screen_wrapper.h" | |
12 | |
13 #include <assert.h> | |
14 | |
15 #include "remoting/base/logging.h" | |
16 #include "third_party/webrtc/base/macutils.h" | |
17 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" | |
Lambros
2014/07/30 00:14:50
You shouldn't need most of these #includes. Partic
ronakvora do not use
2014/07/30 20:55:37
Done.
| |
18 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | |
19 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | |
20 #include "third_party/webrtc/modules/desktop_capture/mac/desktop_configuration.h " | |
21 #include "third_party/webrtc/modules/desktop_capture/mac/window_list_utils.h" | |
22 #include "third_party/webrtc/system_wrappers/interface/logging.h" | |
23 #include "third_party/webrtc/system_wrappers/interface/tick_util.h" | |
24 | |
25 namespace remoting { | |
26 | |
27 WindowCapturerScreenWrapper::WindowCapturerScreenWrapper() { | |
28 } | |
29 | |
30 WindowCapturerScreenWrapper::~WindowCapturerScreenWrapper() { | |
31 } | |
32 | |
33 bool WindowCapturerScreenWrapper::SelectWindow | |
34 (webrtc::WindowCapturer::WindowId id) { | |
35 return window_capturer_->SelectWindow(id); | |
36 } | |
37 void WindowCapturerScreenWrapper::SetWindow | |
38 (const webrtc::DesktopCaptureOptions& options) { | |
39 window_capturer_ = webrtc::WindowCapturer::Create(options); | |
40 } | |
41 | |
42 /* probably not needed for now since these methods don't get called | |
Lambros
2014/07/30 00:14:50
Remove this commented-out block. It's Mac-specific
ronakvora do not use
2014/07/30 20:55:37
Done.
| |
43 * directly. | |
44 bool WindowCapturerScreenWrapperMac::GetWindowList | |
45 (webrtc::WindowCapturer::WindowList* windows) { | |
46 return window_capturer_mac_->GetWindowList(windows); | |
47 } | |
48 | |
49 bool WindowCapturerScreenWrapperMac::BringSelectedWindowToFront() { | |
50 return window_capturer_mac_->BringSelectedWindowToFront(); | |
51 } | |
52 */ | |
53 | |
54 void WindowCapturerScreenWrapper::Start(Callback* callback) { | |
55 window_capturer_->Start(callback); | |
56 } | |
57 | |
58 void WindowCapturerScreenWrapper::Capture(const webrtc::DesktopRegion& region) { | |
59 window_capturer_->Capture(region); | |
60 } | |
61 | |
62 void WindowCapturerScreenWrapper::SetMouseShapeObserver( | |
63 MouseShapeObserver* mouse_shape_observer) { | |
64 return; | |
65 } | |
66 bool WindowCapturerScreenWrapper::GetScreenList(ScreenList* screens) { | |
67 return false; | |
68 } | |
69 | |
70 bool WindowCapturerScreenWrapper::SelectScreen(webrtc::ScreenId id) { | |
71 return false; | |
72 } | |
73 | |
74 // static | |
75 WindowCapturerScreenWrapper* WindowCapturerScreenWrapper::Create() { | |
76 return new WindowCapturerScreenWrapper(); | |
77 } | |
78 | |
79 } // namespace remoting | |
OLD | NEW |