Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: webrtc/modules/desktop_capture/desktop_capturer.h

Issue 2468753002: Add CreateWindowCapturer() and CreateScreenCapturer() in DesktopCapturer (Closed)
Patch Set: Build break without X11 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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);
113 }; 135 };
114 136
115 } // namespace webrtc 137 } // namespace webrtc
116 138
117 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURER_H_ 139 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURER_H_
118 140
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/desktop_capture.gypi ('k') | webrtc/modules/desktop_capture/desktop_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698