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

Unified Diff: remoting/client/plugin/pepper_input_handler.h

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: mac builds 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/client/plugin/pepper_input_handler.h
diff --git a/remoting/client/plugin/pepper_input_handler.h b/remoting/client/plugin/pepper_input_handler.h
index 299077ff10e226d575f73429ea3b01cca62efd2a..fc942cc1da17f462aec8481605ae7eb6828be2a8 100644
--- a/remoting/client/plugin/pepper_input_handler.h
+++ b/remoting/client/plugin/pepper_input_handler.h
@@ -37,6 +37,10 @@ class PepperInputHandler {
send_mouse_move_deltas_ = enable;
}
+ void set_send_touch_events(bool send) {
Wez 2015/01/21 03:08:37 See comments in ChromotingInstance re this
Rintaro Kuroiwa 2015/01/28 01:12:29 Done.
+ send_touch_events_ = send;
+ }
+
// Processes PPAPI events and dispatches them to |input_stub_|.
bool HandleInputEvent(const pp::InputEvent& event);
@@ -58,6 +62,9 @@ class PepperInputHandler {
// absolute position information, in mouse events.
bool send_mouse_move_deltas_;
+ // True if the plugin should handle raw touch events.
+ bool send_touch_events_;
+
// Accumulated sub-pixel and sub-tick deltas from wheel events.
float wheel_delta_x_;
float wheel_delta_y_;

Powered by Google App Engine
This is Rietveld 408576698