OLD | NEW |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 private: | 60 private: |
61 Callback* callback_; | 61 Callback* callback_; |
62 | 62 |
63 // The window being captured. | 63 // The window being captured. |
64 CGWindowID window_id_; | 64 CGWindowID window_id_; |
65 | 65 |
66 rtc::scoped_refptr<FullScreenChromeWindowDetector> | 66 rtc::scoped_refptr<FullScreenChromeWindowDetector> |
67 full_screen_chrome_window_detector_; | 67 full_screen_chrome_window_detector_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(WindowCapturerMac); | 69 RTC_DISALLOW_COPY_AND_ASSIGN(WindowCapturerMac); |
70 }; | 70 }; |
71 | 71 |
72 WindowCapturerMac::WindowCapturerMac(rtc::scoped_refptr< | 72 WindowCapturerMac::WindowCapturerMac(rtc::scoped_refptr< |
73 FullScreenChromeWindowDetector> full_screen_chrome_window_detector) | 73 FullScreenChromeWindowDetector> full_screen_chrome_window_detector) |
74 : callback_(NULL), | 74 : callback_(NULL), |
75 window_id_(0), | 75 window_id_(0), |
76 full_screen_chrome_window_detector_(full_screen_chrome_window_detector) { | 76 full_screen_chrome_window_detector_(full_screen_chrome_window_detector) { |
77 } | 77 } |
78 | 78 |
79 WindowCapturerMac::~WindowCapturerMac() { | 79 WindowCapturerMac::~WindowCapturerMac() { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 } | 232 } |
233 | 233 |
234 } // namespace | 234 } // namespace |
235 | 235 |
236 // static | 236 // static |
237 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { | 237 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { |
238 return new WindowCapturerMac(options.full_screen_chrome_window_detector()); | 238 return new WindowCapturerMac(options.full_screen_chrome_window_detector()); |
239 } | 239 } |
240 | 240 |
241 } // namespace webrtc | 241 } // namespace webrtc |
OLD | NEW |