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

Side by Side Diff: remoting/host/basic_desktop_environment.cc

Issue 13932020: Set the initial resolution of an RDP session to the client screen resolution if it is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback #2 Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/basic_desktop_environment.h" 5 #include "remoting/host/basic_desktop_environment.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "media/video/capture/screen/screen_capturer.h" 10 #include "media/video/capture/screen/screen_capturer.h"
11 #include "remoting/base/capabilities.h"
11 #include "remoting/host/audio_capturer.h" 12 #include "remoting/host/audio_capturer.h"
12 #include "remoting/host/client_session_control.h" 13 #include "remoting/host/client_session_control.h"
13 #include "remoting/host/host_window.h" 14 #include "remoting/host/host_window.h"
14 #include "remoting/host/host_window_proxy.h" 15 #include "remoting/host/host_window_proxy.h"
15 #include "remoting/host/input_injector.h" 16 #include "remoting/host/input_injector.h"
16 #include "remoting/host/local_input_monitor.h" 17 #include "remoting/host/local_input_monitor.h"
17 #include "remoting/host/screen_controls.h" 18 #include "remoting/host/screen_controls.h"
18 #include "remoting/host/ui_strings.h" 19 #include "remoting/host/ui_strings.h"
19 20
20 #if defined(OS_POSIX) 21 #if defined(OS_POSIX)
(...skipping 18 matching lines...) Expand all
39 40
40 return InputInjector::Create(input_task_runner(), ui_task_runner()); 41 return InputInjector::Create(input_task_runner(), ui_task_runner());
41 } 42 }
42 43
43 scoped_ptr<ScreenControls> BasicDesktopEnvironment::CreateScreenControls() { 44 scoped_ptr<ScreenControls> BasicDesktopEnvironment::CreateScreenControls() {
44 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 45 DCHECK(caller_task_runner_->BelongsToCurrentThread());
45 46
46 return scoped_ptr<ScreenControls>(); 47 return scoped_ptr<ScreenControls>();
47 } 48 }
48 49
50 Capabilities BasicDesktopEnvironment::GetCapabilities() const {
51 return Capabilities();
52 }
53
54 void BasicDesktopEnvironment::SetCapabilities(
55 const Capabilities& capabilities) {
56 }
57
49 scoped_ptr<media::ScreenCapturer> 58 scoped_ptr<media::ScreenCapturer>
50 BasicDesktopEnvironment::CreateVideoCapturer() { 59 BasicDesktopEnvironment::CreateVideoCapturer() {
51 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 60 DCHECK(caller_task_runner_->BelongsToCurrentThread());
52 61
53 // The basic desktop environment does not use X DAMAGE, since it is 62 // The basic desktop environment does not use X DAMAGE, since it is
54 // broken on many systems - see http://crbug.com/73423. 63 // broken on many systems - see http://crbug.com/73423.
55 return media::ScreenCapturer::Create(); 64 return media::ScreenCapturer::Create();
56 } 65 }
57 66
58 BasicDesktopEnvironment::BasicDesktopEnvironment( 67 BasicDesktopEnvironment::BasicDesktopEnvironment(
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 &ui_strings_)); 134 &ui_strings_));
126 } 135 }
127 136
128 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const { 137 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const {
129 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 138 DCHECK(caller_task_runner_->BelongsToCurrentThread());
130 139
131 return AudioCapturer::IsSupported(); 140 return AudioCapturer::IsSupported();
132 } 141 }
133 142
134 } // namespace remoting 143 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698