blob: 8a33807bb3b617aa689fb34e6f75c5a662ed1d76 [file] [log] [blame]
sergeyu@chromium.org894e6fe2013-10-12 22:40:05 +00001/*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "modules/desktop_capture/desktop_capture_options.h"
sergeyu@chromium.org894e6fe2013-10-12 22:40:05 +000012
13namespace webrtc {
14
sergeyue1831212016-10-26 13:15:42 -070015DesktopCaptureOptions::DesktopCaptureOptions() {}
16DesktopCaptureOptions::DesktopCaptureOptions(
17 const DesktopCaptureOptions& options) = default;
18DesktopCaptureOptions::DesktopCaptureOptions(DesktopCaptureOptions&& options) =
19 default;
20DesktopCaptureOptions::~DesktopCaptureOptions() {}
21
22DesktopCaptureOptions& DesktopCaptureOptions::operator=(
23 const DesktopCaptureOptions& options) = default;
24DesktopCaptureOptions& DesktopCaptureOptions::operator=(
25 DesktopCaptureOptions&& options) = default;
26
sergeyu@chromium.org894e6fe2013-10-12 22:40:05 +000027// static
28DesktopCaptureOptions DesktopCaptureOptions::CreateDefault() {
29 DesktopCaptureOptions result;
30#if defined(USE_X11)
31 result.set_x_display(SharedXDisplay::CreateDefault());
32#endif
jiayl@webrtc.orgcf1b51b2014-01-29 21:59:12 +000033#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
34 result.set_configuration_monitor(new DesktopConfigurationMonitor());
jiayl@webrtc.org10ef8fe2014-07-09 19:41:32 +000035 result.set_full_screen_chrome_window_detector(
36 new FullScreenChromeWindowDetector());
jiayl@webrtc.orgcf1b51b2014-01-29 21:59:12 +000037#endif
sergeyu@chromium.org894e6fe2013-10-12 22:40:05 +000038 return result;
39}
40
41} // namespace webrtc