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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/host_details.cc ('k') | remoting/host/it2me/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/input_injector_android.cc
diff --git a/remoting/host/input_injector_android.cc b/remoting/host/input_injector_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f21f3a240ade77a15d0bd56a6e23da56eed4d96c
--- /dev/null
+++ b/remoting/host/input_injector_android.cc
@@ -0,0 +1,57 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/memory/ptr_util.h"
+#include "remoting/host/input_injector.h"
+
+namespace remoting {
+
+namespace {
+
+class InputInjectorAndroid : public InputInjector {
+ public:
+ InputInjectorAndroid() {}
+
+ void InjectClipboardEvent(const protocol::ClipboardEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectKeyEvent(const protocol::KeyEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectTextEvent(const protocol::TextEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectMouseEvent(const protocol::MouseEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectTouchEvent(const protocol::TouchEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void Start(
+ std::unique_ptr<protocol::ClipboardStub> client_clipboard) override {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InputInjectorAndroid);
+};
+
+} // namespace
+
+// static
+std::unique_ptr<InputInjector> InputInjector::Create(
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
+ return base::WrapUnique(new InputInjectorAndroid());
+}
+
+// static
+bool InputInjector::SupportsTouchEvents() {
+ return false;
+}
+
+} // namespace remoting
« 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