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

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

Issue 1863933002: [remoting android] Add and build host code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-host-add-native
Patch Set: Add resources_android.cc Created 4 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
« no previous file with comments | « remoting/host/host_details.cc ('k') | remoting/host/it2me/BUILD.gn » ('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 2016 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 #include "base/memory/ptr_util.h"
6 #include "remoting/host/input_injector.h"
7
8 namespace remoting {
9
10 namespace {
11
12 class InputInjectorAndroid : public InputInjector {
13 public:
14 InputInjectorAndroid() {}
15
16 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override {
17 NOTIMPLEMENTED();
18 }
19
20 void InjectKeyEvent(const protocol::KeyEvent& event) override {
21 NOTIMPLEMENTED();
22 }
23
24 void InjectTextEvent(const protocol::TextEvent& event) override {
25 NOTIMPLEMENTED();
26 }
27
28 void InjectMouseEvent(const protocol::MouseEvent& event) override {
29 NOTIMPLEMENTED();
30 }
31
32 void InjectTouchEvent(const protocol::TouchEvent& event) override {
33 NOTIMPLEMENTED();
34 }
35
36 void Start(
37 std::unique_ptr<protocol::ClipboardStub> client_clipboard) override {}
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(InputInjectorAndroid);
41 };
42
43 } // namespace
44
45 // static
46 std::unique_ptr<InputInjector> InputInjector::Create(
47 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
48 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
49 return base::WrapUnique(new InputInjectorAndroid());
50 }
51
52 // static
53 bool InputInjector::SupportsTouchEvents() {
54 return false;
55 }
56
57 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_details.cc ('k') | remoting/host/it2me/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698