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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change setter to public and add license header Created 5 years, 6 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
« no previous file with comments | « remoting/host/it2me_desktop_environment.h ('k') | remoting/host/me2me_desktop_environment.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/it2me_desktop_environment.h" 5 #include "remoting/host/it2me_desktop_environment.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "remoting/host/client_session_control.h" 9 #include "remoting/host/client_session_control.h"
10 #include "remoting/host/host_window.h" 10 #include "remoting/host/host_window.h"
11 #include "remoting/host/host_window_proxy.h" 11 #include "remoting/host/host_window_proxy.h"
12 #include "remoting/host/local_input_monitor.h" 12 #include "remoting/host/local_input_monitor.h"
13 13
14 #if defined(OS_POSIX) 14 #if defined(OS_POSIX)
15 #include <sys/types.h> 15 #include <sys/types.h>
16 #include <unistd.h> 16 #include <unistd.h>
17 #endif // defined(OS_POSIX) 17 #endif // defined(OS_POSIX)
18 18
19 namespace remoting { 19 namespace remoting {
20 20
21 It2MeDesktopEnvironment::~It2MeDesktopEnvironment() { 21 It2MeDesktopEnvironment::~It2MeDesktopEnvironment() {
22 DCHECK(caller_task_runner()->BelongsToCurrentThread()); 22 DCHECK(caller_task_runner()->BelongsToCurrentThread());
23 } 23 }
24 24
25 It2MeDesktopEnvironment::It2MeDesktopEnvironment( 25 It2MeDesktopEnvironment::It2MeDesktopEnvironment(
26 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 26 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
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 base::WeakPtr<ClientSessionControl> client_session_control) 29 base::WeakPtr<ClientSessionControl> client_session_control,
30 bool supports_touch_events)
30 : BasicDesktopEnvironment(caller_task_runner, 31 : BasicDesktopEnvironment(caller_task_runner,
31 input_task_runner, 32 input_task_runner,
32 ui_task_runner) { 33 ui_task_runner,
34 supports_touch_events) {
33 DCHECK(caller_task_runner->BelongsToCurrentThread()); 35 DCHECK(caller_task_runner->BelongsToCurrentThread());
34 36
35 // Create the local input monitor. 37 // Create the local input monitor.
36 local_input_monitor_ = LocalInputMonitor::Create(caller_task_runner, 38 local_input_monitor_ = LocalInputMonitor::Create(caller_task_runner,
37 input_task_runner, 39 input_task_runner,
38 ui_task_runner, 40 ui_task_runner,
39 client_session_control); 41 client_session_control);
40 42
41 // The host UI should be created on the UI thread. 43 // The host UI should be created on the UI thread.
42 bool want_user_interface = true; 44 bool want_user_interface = true;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 It2MeDesktopEnvironmentFactory::~It2MeDesktopEnvironmentFactory() { 83 It2MeDesktopEnvironmentFactory::~It2MeDesktopEnvironmentFactory() {
82 } 84 }
83 85
84 scoped_ptr<DesktopEnvironment> It2MeDesktopEnvironmentFactory::Create( 86 scoped_ptr<DesktopEnvironment> It2MeDesktopEnvironmentFactory::Create(
85 base::WeakPtr<ClientSessionControl> client_session_control) { 87 base::WeakPtr<ClientSessionControl> client_session_control) {
86 DCHECK(caller_task_runner()->BelongsToCurrentThread()); 88 DCHECK(caller_task_runner()->BelongsToCurrentThread());
87 89
88 return make_scoped_ptr(new It2MeDesktopEnvironment(caller_task_runner(), 90 return make_scoped_ptr(new It2MeDesktopEnvironment(caller_task_runner(),
89 input_task_runner(), 91 input_task_runner(),
90 ui_task_runner(), 92 ui_task_runner(),
91 client_session_control)); 93 client_session_control,
94 supports_touch_events()));
92 } 95 }
93 96
94 } // namespace remoting 97 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/it2me_desktop_environment.h ('k') | remoting/host/me2me_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698