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

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

Issue 12760012: Rename EventExecutor to InputInjector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace some missed occurrences and remove unused include. Created 7 years, 9 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
« no previous file with comments | « remoting/host/basic_desktop_environment.h ('k') | remoting/host/chromoting_host.cc » ('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/logging.h" 7 #include "base/logging.h"
8 #include "media/video/capture/screen/screen_capturer.h" 8 #include "media/video/capture/screen/screen_capturer.h"
9 #include "remoting/host/audio_capturer.h" 9 #include "remoting/host/audio_capturer.h"
10 #include "remoting/host/event_executor.h" 10 #include "remoting/host/input_injector.h"
11 #include "remoting/host/session_controller.h" 11 #include "remoting/host/session_controller.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 BasicDesktopEnvironment::~BasicDesktopEnvironment() { 15 BasicDesktopEnvironment::~BasicDesktopEnvironment() {
16 DCHECK(CalledOnValidThread()); 16 DCHECK(CalledOnValidThread());
17 } 17 }
18 18
19 scoped_ptr<AudioCapturer> BasicDesktopEnvironment::CreateAudioCapturer( 19 scoped_ptr<AudioCapturer> BasicDesktopEnvironment::CreateAudioCapturer(
20 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) { 20 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) {
21 DCHECK(CalledOnValidThread()); 21 DCHECK(CalledOnValidThread());
22 22
23 return AudioCapturer::Create(); 23 return AudioCapturer::Create();
24 } 24 }
25 25
26 scoped_ptr<EventExecutor> BasicDesktopEnvironment::CreateEventExecutor( 26 scoped_ptr<InputInjector> BasicDesktopEnvironment::CreateInputInjector(
27 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 27 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 28 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
29 DCHECK(CalledOnValidThread()); 29 DCHECK(CalledOnValidThread());
30 30
31 return EventExecutor::Create(input_task_runner, ui_task_runner); 31 return InputInjector::Create(input_task_runner, ui_task_runner);
32 } 32 }
33 33
34 scoped_ptr<SessionController> 34 scoped_ptr<SessionController>
35 BasicDesktopEnvironment::CreateSessionController() { 35 BasicDesktopEnvironment::CreateSessionController() {
36 DCHECK(CalledOnValidThread()); 36 DCHECK(CalledOnValidThread());
37 37
38 return scoped_ptr<SessionController>(); 38 return scoped_ptr<SessionController>();
39 } 39 }
40 40
41 scoped_ptr<media::ScreenCapturer> BasicDesktopEnvironment::CreateVideoCapturer( 41 scoped_ptr<media::ScreenCapturer> BasicDesktopEnvironment::CreateVideoCapturer(
(...skipping 19 matching lines...) Expand all
61 const std::string& client_jid, 61 const std::string& client_jid,
62 const base::Closure& disconnect_callback) { 62 const base::Closure& disconnect_callback) {
63 return scoped_ptr<DesktopEnvironment>(new BasicDesktopEnvironment()); 63 return scoped_ptr<DesktopEnvironment>(new BasicDesktopEnvironment());
64 } 64 }
65 65
66 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const { 66 bool BasicDesktopEnvironmentFactory::SupportsAudioCapture() const {
67 return AudioCapturer::IsSupported(); 67 return AudioCapturer::IsSupported();
68 } 68 }
69 69
70 } // namespace remoting 70 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/basic_desktop_environment.h ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698