summaryrefslogtreecommitdiffstats
path: root/remoting/host/input_injector_chromeos.cc
diff options
context:
space:
mode:
authorkelvinp <kelvinp@chromium.org>2014-11-12 18:52:54 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-13 02:54:17 +0000
commit18ffa032d49f63f8ae00e68ea7a870e61527bea5 (patch)
treecf0a109e9d076da94e358abb9bdd2d90bebe392c /remoting/host/input_injector_chromeos.cc
parentfe48afde26a29b787ed34e2fa8c5ddf71c41f769 (diff)
downloadchromium_src-18ffa032d49f63f8ae00e68ea7a870e61527bea5.zip
chromium_src-18ffa032d49f63f8ae00e68ea7a870e61527bea5.tar.gz
chromium_src-18ffa032d49f63f8ae00e68ea7a870e61527bea5.tar.bz2
Remote assistance on Chrome OS Part VIII - Compile on Ozone
This CL makes It2Me host compile on platforms that uses Ozone. It replaces the X11-based LocalInputMonitor, MouseCursorMonitor and InputInjector with placeholder implementations for Chrome OS. An actual implementation is provided for the LocalInputMonitor with code ported from https://codereview.chromium.org/652293003/. BUG=431876 Review URL: https://codereview.chromium.org/700333007 Cr-Commit-Position: refs/heads/master@{#303971}
Diffstat (limited to 'remoting/host/input_injector_chromeos.cc')
-rw-r--r--remoting/host/input_injector_chromeos.cc58
1 files changed, 58 insertions, 0 deletions
diff --git a/remoting/host/input_injector_chromeos.cc b/remoting/host/input_injector_chromeos.cc
new file mode 100644
index 0000000..a18b1cd
--- /dev/null
+++ b/remoting/host/input_injector_chromeos.cc
@@ -0,0 +1,58 @@
+// Copyright 2014 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_chromeos.h"
+
+#include "base/logging.h"
+#include "remoting/proto/internal.pb.h"
+
+namespace remoting {
+
+using protocol::ClipboardEvent;
+using protocol::KeyEvent;
+using protocol::MouseEvent;
+using protocol::TextEvent;
+
+// TODO(kelvinp): Implement this class (See crbug.com/426716).
+InputInjectorChromeos::InputInjectorChromeos(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ : input_task_runner_(task_runner) {
+ NOTIMPLEMENTED();
+}
+
+InputInjectorChromeos::~InputInjectorChromeos() {
+ NOTIMPLEMENTED();
+}
+
+void InputInjectorChromeos::InjectClipboardEvent(const ClipboardEvent& event) {
+ NOTIMPLEMENTED();
+}
+
+void InputInjectorChromeos::InjectKeyEvent(const KeyEvent& event) {
+ NOTIMPLEMENTED();
+}
+
+void InputInjectorChromeos::InjectTextEvent(const TextEvent& event) {
+ NOTIMPLEMENTED();
+}
+
+void InputInjectorChromeos::InjectMouseEvent(const MouseEvent& event) {
+ NOTIMPLEMENTED();
+}
+
+void InputInjectorChromeos::Start(
+ scoped_ptr<protocol::ClipboardStub> client_clipboard) {
+ NOTIMPLEMENTED();
+}
+
+// static
+scoped_ptr<InputInjector> InputInjector::Create(
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
+ scoped_ptr<InputInjectorChromeos> injector(new InputInjectorChromeos(
+ ui_task_runner));
+ return injector.Pass();
+}
+
+} // namespace remoting