| 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 28 matching lines...) Expand all Loading... |
| 39 CFRelease(window_id_array); | 39 CFRelease(window_id_array); |
| 40 CFRelease(window_array); | 40 CFRelease(window_array); |
| 41 | 41 |
| 42 return valid; | 42 return valid; |
| 43 } | 43 } |
| 44 | 44 |
| 45 class WindowCapturerMac : public WindowCapturer { | 45 class WindowCapturerMac : public WindowCapturer { |
| 46 public: | 46 public: |
| 47 explicit WindowCapturerMac(rtc::scoped_refptr<FullScreenChromeWindowDetector> | 47 explicit WindowCapturerMac(rtc::scoped_refptr<FullScreenChromeWindowDetector> |
| 48 full_screen_chrome_window_detector); | 48 full_screen_chrome_window_detector); |
| 49 virtual ~WindowCapturerMac(); | 49 ~WindowCapturerMac() override; |
| 50 | 50 |
| 51 // WindowCapturer interface. | 51 // WindowCapturer interface. |
| 52 bool GetWindowList(WindowList* windows) override; | 52 bool GetWindowList(WindowList* windows) override; |
| 53 bool SelectWindow(WindowId id) override; | 53 bool SelectWindow(WindowId id) override; |
| 54 bool BringSelectedWindowToFront() override; | 54 bool BringSelectedWindowToFront() override; |
| 55 | 55 |
| 56 // DesktopCapturer interface. | 56 // DesktopCapturer interface. |
| 57 void Start(Callback* callback) override; | 57 void Start(Callback* callback) override; |
| 58 void CaptureFrame() override; | 58 void CaptureFrame() override; |
| 59 | 59 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace | 237 } // namespace |
| 238 | 238 |
| 239 // static | 239 // static |
| 240 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { | 240 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { |
| 241 return new WindowCapturerMac(options.full_screen_chrome_window_detector()); | 241 return new WindowCapturerMac(options.full_screen_chrome_window_detector()); |
| 242 } | 242 } |
| 243 | 243 |
| 244 } // namespace webrtc | 244 } // namespace webrtc |
| OLD | NEW |