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

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

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/desktop_shape_tracker_x11.cc ('k') | remoting/host/input_injector_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_
6 #define REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_
7
8 #include "base/single_thread_task_runner.h"
9 #include "remoting/host/input_injector.h"
10
11 namespace remoting {
12
13 // InputInjector implementation that translates input to ui::Events and passes
14 // them to a supplied delegate for injection into ChromeOS.
15 class InputInjectorChromeos : public InputInjector {
16 public:
17 explicit InputInjectorChromeos(
18 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
19
20 ~InputInjectorChromeos() override;
21
22 // Clipboard stub interface.
23 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override;
24
25 // InputStub interface.
26 void InjectKeyEvent(const protocol::KeyEvent& event) override;
27 void InjectTextEvent(const protocol::TextEvent& event) override;
28 void InjectMouseEvent(const protocol::MouseEvent& event) override;
29
30 // InputInjector interface.
31 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override;
32
33 private:
34 // Task runner for input injection.
35 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_;
36
37 DISALLOW_COPY_AND_ASSIGN(InputInjectorChromeos);
38 };
39
40 } // namespace remoting
41
42 #endif // REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_shape_tracker_x11.cc ('k') | remoting/host/input_injector_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698