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

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

Issue 718313002: Revert "Remote assistance on Chrome OS Part VIII - Compile on Ozone" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/chromeos/clipboard_aura.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "remoting/host/audio_capturer.h" 10 #include "remoting/host/audio_capturer.h"
11 #if defined(OS_CHROMEOS) 11 #if defined(OS_CHROMEOS)
12 #include "remoting/host/chromeos/aura_desktop_capturer.h" 12 #include "remoting/host/chromeos/aura_desktop_capturer.h"
13 #endif 13 #endif
14 #if defined(OS_CHROMEOS) && defined(USE_OZONE)
15 #include "remoting/host/chromeos/mouse_cursor_monitor_aura.h"
16 #endif
17 #include "remoting/host/client_session_control.h" 14 #include "remoting/host/client_session_control.h"
18 #include "remoting/host/gnubby_auth_handler.h" 15 #include "remoting/host/gnubby_auth_handler.h"
19 #include "remoting/host/input_injector.h" 16 #include "remoting/host/input_injector.h"
20 #include "remoting/host/screen_controls.h" 17 #include "remoting/host/screen_controls.h"
21 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" 18 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h"
22 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" 19 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
23 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" 20 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
24 21
25 namespace remoting { 22 namespace remoting {
26 23
(...skipping 14 matching lines...) Expand all
41 } 38 }
42 39
43 scoped_ptr<ScreenControls> BasicDesktopEnvironment::CreateScreenControls() { 40 scoped_ptr<ScreenControls> BasicDesktopEnvironment::CreateScreenControls() {
44 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 41 DCHECK(caller_task_runner_->BelongsToCurrentThread());
45 42
46 return nullptr; 43 return nullptr;
47 } 44 }
48 45
49 scoped_ptr<webrtc::MouseCursorMonitor> 46 scoped_ptr<webrtc::MouseCursorMonitor>
50 BasicDesktopEnvironment::CreateMouseCursorMonitor() { 47 BasicDesktopEnvironment::CreateMouseCursorMonitor() {
51 #if defined(OS_CHROMEOS) && defined(USE_OZONE)
52 return make_scoped_ptr(
53 new MouseCursorMonitorAura(*desktop_capture_options_));
54 #else
55 return make_scoped_ptr(webrtc::MouseCursorMonitor::CreateForScreen( 48 return make_scoped_ptr(webrtc::MouseCursorMonitor::CreateForScreen(
56 *desktop_capture_options_, webrtc::kFullDesktopScreenId)); 49 *desktop_capture_options_, webrtc::kFullDesktopScreenId));
57 #endif
58 } 50 }
59 51
60 std::string BasicDesktopEnvironment::GetCapabilities() const { 52 std::string BasicDesktopEnvironment::GetCapabilities() const {
61 return std::string(); 53 return std::string();
62 } 54 }
63 55
64 void BasicDesktopEnvironment::SetCapabilities(const std::string& capabilities) { 56 void BasicDesktopEnvironment::SetCapabilities(const std::string& capabilities) {
65 } 57 }
66 58
67 scoped_ptr<GnubbyAuthHandler> BasicDesktopEnvironment::CreateGnubbyAuthHandler( 59 scoped_ptr<GnubbyAuthHandler> BasicDesktopEnvironment::CreateGnubbyAuthHandler(
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 BasicDesktopEnvironmentFactory::~BasicDesktopEnvironmentFactory() { 100 BasicDesktopEnvironmentFactory::~BasicDesktopEnvironmentFactory() {
109 } 101 }
110 102
111 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const { 103 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const {
112 DCHECK(caller_task_runner_->BelongsToCurrentThread()); 104 DCHECK(caller_task_runner_->BelongsToCurrentThread());
113 105
114 return AudioCapturer::IsSupported(); 106 return AudioCapturer::IsSupported();
115 } 107 }
116 108
117 } // namespace remoting 109 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/chromeos/clipboard_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698