| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual bool GetSourceList(SourceList* sources); | 103 virtual bool GetSourceList(SourceList* sources); |
| 104 | 104 |
| 105 // Selects a source to be captured. Returns false in case of a failure (e.g. | 105 // Selects a source to be captured. Returns false in case of a failure (e.g. |
| 106 // if there is no source with the specified type and id.) | 106 // if there is no source with the specified type and id.) |
| 107 virtual bool SelectSource(SourceId id); | 107 virtual bool SelectSource(SourceId id); |
| 108 | 108 |
| 109 // Brings the selected source to the front and sets the input focus on it. | 109 // Brings the selected source to the front and sets the input focus on it. |
| 110 // Returns false in case of a failure or no source has been selected or the | 110 // Returns false in case of a failure or no source has been selected or the |
| 111 // implementation does not support this functionality. | 111 // implementation does not support this functionality. |
| 112 virtual bool FocusOnSelectedSource(); | 112 virtual bool FocusOnSelectedSource(); |
| 113 | |
| 114 // Creates a DesktopCapturer instance which targets to capture windows. | |
| 115 static std::unique_ptr<DesktopCapturer> CreateWindowCapturer( | |
| 116 const DesktopCaptureOptions& options); | |
| 117 | |
| 118 // Creates a DesktopCapturer instance which targets to capture screens. | |
| 119 static std::unique_ptr<DesktopCapturer> CreateScreenCapturer( | |
| 120 const DesktopCaptureOptions& options); | |
| 121 | |
| 122 protected: | |
| 123 // CroppingWindowCapturer needs to create raw capturers without wrappers, so | |
| 124 // the following two functions are protected. | |
| 125 | |
| 126 // Creates a platform specific DesktopCapturer instance which targets to | |
| 127 // capture windows. | |
| 128 static std::unique_ptr<DesktopCapturer> CreateRawWindowCapturer( | |
| 129 const DesktopCaptureOptions& options); | |
| 130 | |
| 131 // Creates a platform specific DesktopCapturer instance which targets to | |
| 132 // capture screens. | |
| 133 static std::unique_ptr<DesktopCapturer> CreateRawScreenCapturer( | |
| 134 const DesktopCaptureOptions& options); | |
| 135 }; | 113 }; |
| 136 | 114 |
| 137 } // namespace webrtc | 115 } // namespace webrtc |
| 138 | 116 |
| 139 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURER_H_ | 117 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURER_H_ |
| 140 | 118 |
| OLD | NEW |