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

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: 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
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..ad14867f7e412572077275e6913e0951d6c8a97f
--- /dev/null
+++ b/remoting/host/input_injector_android.cc
@@ -0,0 +1,61 @@
+// Copyright (c) 2012 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 "remoting/host/input_injector.h"
+
+namespace remoting {
+
+namespace {
+
+using protocol::ClipboardEvent;
+using protocol::KeyEvent;
+using protocol::TextEvent;
+using protocol::MouseEvent;
+using protocol::TouchEvent;
Sergey Ulanov 2016/04/07 00:56:14 nit: Remove these and add add protocol:: below whe
Lambros 2016/04/12 21:58:03 Done.
+
+class InputInjectorAndroid : public InputInjector {
+ public:
+ InputInjectorAndroid() {}
+
+ void InjectClipboardEvent(const ClipboardEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectKeyEvent(const KeyEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectTextEvent(const TextEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectMouseEvent(const MouseEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void InjectTouchEvent(const TouchEvent& event) override {
+ NOTIMPLEMENTED();
+ }
+
+ void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(InputInjectorAndroid);
+};
+
+} // namespace
+
+// static
+scoped_ptr<InputInjector> InputInjector::Create(
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
+ return make_scoped_ptr(new InputInjectorAndroid());
+}
+
+// static
+bool InputInjector::SupportsTouchEvents() {
+ return false;
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698