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

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

Issue 2436503004: Enable clang style plugin in webrtc/modules/desktop_capture (Closed)
Patch Set: . 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 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ 10 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_
(...skipping 15 matching lines...) Expand all
26 26
27 // An object that stores initialization parameters for screen and window 27 // An object that stores initialization parameters for screen and window
28 // capturers. 28 // capturers.
29 class DesktopCaptureOptions { 29 class DesktopCaptureOptions {
30 public: 30 public:
31 // Returns instance of DesktopCaptureOptions with default parameters. On Linux 31 // Returns instance of DesktopCaptureOptions with default parameters. On Linux
32 // also initializes X window connection. x_display() will be set to null if 32 // also initializes X window connection. x_display() will be set to null if
33 // X11 connection failed (e.g. DISPLAY isn't set). 33 // X11 connection failed (e.g. DISPLAY isn't set).
34 static DesktopCaptureOptions CreateDefault(); 34 static DesktopCaptureOptions CreateDefault();
35 35
36 DesktopCaptureOptions();
37 DesktopCaptureOptions(const DesktopCaptureOptions& options);
38 DesktopCaptureOptions(DesktopCaptureOptions&& options);
39 ~DesktopCaptureOptions();
40
41 DesktopCaptureOptions& operator=(const DesktopCaptureOptions& options);
42 DesktopCaptureOptions& operator=(DesktopCaptureOptions&& options);
43
36 #if defined(USE_X11) 44 #if defined(USE_X11)
37 SharedXDisplay* x_display() const { return x_display_; } 45 SharedXDisplay* x_display() const { return x_display_; }
38 void set_x_display(rtc::scoped_refptr<SharedXDisplay> x_display) { 46 void set_x_display(rtc::scoped_refptr<SharedXDisplay> x_display) {
39 x_display_ = x_display; 47 x_display_ = x_display;
40 } 48 }
41 #endif 49 #endif
42 50
43 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) 51 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
44 DesktopConfigurationMonitor* configuration_monitor() const { 52 DesktopConfigurationMonitor* configuration_monitor() const {
45 return configuration_monitor_; 53 return configuration_monitor_;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 #else 127 #else
120 bool use_update_notifications_ = true; 128 bool use_update_notifications_ = true;
121 #endif 129 #endif
122 bool disable_effects_ = true; 130 bool disable_effects_ = true;
123 bool detect_updated_region_ = false; 131 bool detect_updated_region_ = false;
124 }; 132 };
125 133
126 } // namespace webrtc 134 } // namespace webrtc
127 135
128 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_ 136 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_DESKTOP_CAPTURE_OPTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698