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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 return TRUE; | 76 return TRUE; |
77 | 77 |
78 list->push_back(window); | 78 list->push_back(window); |
79 | 79 |
80 return TRUE; | 80 return TRUE; |
81 } | 81 } |
82 | 82 |
83 class WindowCapturerWin : public WindowCapturer { | 83 class WindowCapturerWin : public WindowCapturer { |
84 public: | 84 public: |
85 WindowCapturerWin(); | 85 WindowCapturerWin(); |
86 virtual ~WindowCapturerWin(); | 86 ~WindowCapturerWin() override; |
87 | 87 |
88 // WindowCapturer interface. | 88 // WindowCapturer interface. |
89 bool GetWindowList(WindowList* windows) override; | 89 bool GetWindowList(WindowList* windows) override; |
90 bool SelectWindow(WindowId id) override; | 90 bool SelectWindow(WindowId id) override; |
91 bool BringSelectedWindowToFront() override; | 91 bool BringSelectedWindowToFront() override; |
92 | 92 |
93 // DesktopCapturer interface. | 93 // DesktopCapturer interface. |
94 void Start(Callback* callback) override; | 94 void Start(Callback* callback) override; |
95 void CaptureFrame() override; | 95 void CaptureFrame() override; |
96 | 96 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 263 } |
264 | 264 |
265 } // namespace | 265 } // namespace |
266 | 266 |
267 // static | 267 // static |
268 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { | 268 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { |
269 return new WindowCapturerWin(); | 269 return new WindowCapturerWin(); |
270 } | 270 } |
271 | 271 |
272 } // namespace webrtc | 272 } // namespace webrtc |
OLD | NEW |