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

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

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should fix mac build Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/input_injector_chromeos.h" 5 #include "remoting/host/input_injector_chromeos.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 NOTIMPLEMENTED() << "Raw touch event injection not implemented for ChromeOS."; 200 NOTIMPLEMENTED() << "Raw touch event injection not implemented for ChromeOS.";
201 } 201 }
202 202
203 void InputInjectorChromeos::Start( 203 void InputInjectorChromeos::Start(
204 scoped_ptr<protocol::ClipboardStub> client_clipboard) { 204 scoped_ptr<protocol::ClipboardStub> client_clipboard) {
205 input_task_runner_->PostTask( 205 input_task_runner_->PostTask(
206 FROM_HERE, base::Bind(&Core::Start, base::Unretained(core_.get()), 206 FROM_HERE, base::Bind(&Core::Start, base::Unretained(core_.get()),
207 base::Passed(&client_clipboard))); 207 base::Passed(&client_clipboard)));
208 } 208 }
209 209
210 bool InputInjectorChromeos::CanInjectTouch() {
211 return InputInjector::DefaultCanInjectTouch();
212 }
213
210 // static 214 // static
211 scoped_ptr<InputInjector> InputInjector::Create( 215 scoped_ptr<InputInjector> InputInjector::Create(
212 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 216 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
213 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 217 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
214 // The Ozone input injector must be called on the UI task runner of the 218 // The Ozone input injector must be called on the UI task runner of the
215 // browser process. 219 // browser process.
216 return make_scoped_ptr(new InputInjectorChromeos(ui_task_runner)); 220 return make_scoped_ptr(new InputInjectorChromeos(ui_task_runner));
217 } 221 }
218 222
223 // static
224 bool InputInjector::DefaultCanInjectTouch() {
225 return false;
226 }
227
219 } // namespace remoting 228 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698