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

Unified Diff: remoting/host/win/session_input_injector.cc

Issue 799233004: Add touch events to the protocol, the stub layer, and to the client plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add more comments to event proto Created 5 years, 11 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/win/session_input_injector.cc
diff --git a/remoting/host/win/session_input_injector.cc b/remoting/host/win/session_input_injector.cc
index 04cf7da64f2f83d2d1c641fce6099b8fa6e22901..8836a0c342c81f6b376e7037a53e7c08edecbc9e 100644
--- a/remoting/host/win/session_input_injector.cc
+++ b/remoting/host/win/session_input_injector.cc
@@ -43,6 +43,7 @@ using protocol::ClipboardEvent;
using protocol::KeyEvent;
using protocol::MouseEvent;
using protocol::TextEvent;
+using protocol::TouchEvent;
class SessionInputInjectorWin::Core
: public base::RefCountedThreadSafe<SessionInputInjectorWin::Core>,
@@ -56,16 +57,17 @@ class SessionInputInjectorWin::Core
// InputInjector implementation.
virtual void Start(
- scoped_ptr<protocol::ClipboardStub> client_clipboard) override;
+ scoped_ptr<ClipboardStub> client_clipboard) override;
// protocol::ClipboardStub implementation.
virtual void InjectClipboardEvent(
- const protocol::ClipboardEvent& event) override;
+ const ClipboardEvent& event) override;
// protocol::InputStub implementation.
- virtual void InjectKeyEvent(const protocol::KeyEvent& event) override;
- virtual void InjectTextEvent(const protocol::TextEvent& event) override;
- virtual void InjectMouseEvent(const protocol::MouseEvent& event) override;
+ virtual void InjectKeyEvent(const KeyEvent& event) override;
+ virtual void InjectTextEvent(const TextEvent& event) override;
+ virtual void InjectMouseEvent(const MouseEvent& event) override;
+ virtual void InjectTouchEvent(const TouchEvent& event) override;
private:
friend class base::RefCountedThreadSafe<Core>;
@@ -189,6 +191,10 @@ void SessionInputInjectorWin::Core::InjectMouseEvent(const MouseEvent& event) {
nested_executor_->InjectMouseEvent(event);
}
+void SessionInputInjectorWin::Core::InjectTouchEvent(const TouchEvent& event) {
+ NOTIMPLEMENTED();
+}
+
SessionInputInjectorWin::Core::~Core() {
}
@@ -240,4 +246,9 @@ void SessionInputInjectorWin::InjectMouseEvent(
core_->InjectMouseEvent(event);
}
+void SessionInputInjectorWin::InjectTouchEvent(
+ const protocol::TouchEvent& event) {
+ core_->InjectTouchEvent(event);
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698