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

Side by Side Diff: remoting/host/input_injector.h

Issue 1033913003: Touch Events capability negotiation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: back to setting a flag on DesktopEnvironmentFactory 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 (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 #ifndef REMOTING_HOST_INPUT_INJECTOR_H_ 5 #ifndef REMOTING_HOST_INPUT_INJECTOR_H_
6 #define REMOTING_HOST_INPUT_INJECTOR_H_ 6 #define REMOTING_HOST_INPUT_INJECTOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "remoting/protocol/clipboard_stub.h" 10 #include "remoting/protocol/clipboard_stub.h"
(...skipping 10 matching lines...) Expand all
21 public protocol::InputStub { 21 public protocol::InputStub {
22 public: 22 public:
23 // Creates a default input injector for the current platform. This 23 // Creates a default input injector for the current platform. This
24 // object should do as much work as possible on |main_task_runner|, 24 // object should do as much work as possible on |main_task_runner|,
25 // using |ui_task_runner| only for tasks actually requiring a UI 25 // using |ui_task_runner| only for tasks actually requiring a UI
26 // thread. 26 // thread.
27 static scoped_ptr<InputInjector> Create( 27 static scoped_ptr<InputInjector> Create(
28 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 28 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
29 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 29 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
30 30
31 // Returns true iff the platform supports touch injection and the
32 // InputInjector implements InjectTouchEvent().
Wez 2015/04/21 02:12:12 Suggest "Returns true if the InputInjector returne
Rintaro Kuroiwa 2015/04/22 19:55:59 Done.
33 static bool CanInjectTouch();
Wez 2015/04/21 02:12:12 nit: We typically name these in the style Supports
Rintaro Kuroiwa 2015/04/22 19:55:59 Will go with SupportsRawTouchEvents().
34
31 // Initialises any objects needed to execute events. 35 // Initialises any objects needed to execute events.
32 virtual void Start( 36 virtual void Start(
33 scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0; 37 scoped_ptr<protocol::ClipboardStub> client_clipboard) = 0;
34 }; 38 };
35 39
36 } // namespace remoting 40 } // namespace remoting
37 41
38 #endif // REMOTING_HOST_INPUT_INJECTOR_H_ 42 #endif // REMOTING_HOST_INPUT_INJECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698