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

Unified Diff: blimp/common/proto/input.proto

Issue 1975213003: Blimp Client: add support for tap gesture events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 | « no previous file | blimp/engine/session/blimp_engine_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/proto/input.proto
diff --git a/blimp/common/proto/input.proto b/blimp/common/proto/input.proto
index 0905884dd000dfafb5b5a314499787c7971a116c..5e23906d4b047cdc5cdbf05c96e29dc6db83adba 100644
--- a/blimp/common/proto/input.proto
+++ b/blimp/common/proto/input.proto
@@ -57,6 +57,16 @@ message GesturePinchUpdate {
optional float scale = 2;
}
+message GestureTapDown {
+ optional float width = 1;
+ optional float height = 2;
+}
+
+message GestureShowPress {
+ optional float width = 1;
+ optional float height = 2;
+}
+
message InputMessage {
enum Type {
UNKNOWN = 0;
@@ -74,27 +84,33 @@ message InputMessage {
Type_GesturePinchBegin = 7;
Type_GesturePinchEnd = 8;
Type_GesturePinchUpdate = 9;
+ Type_GestureTapDown = 10;
+ Type_GestureTapCancel = 11;
+ Type_GestureTapUnconfirmed = 12;
+ Type_GestureShowPress = 13;
}
optional Type type = 1;
// An ID that corresponds to RenderWidgetMessage.render_widget_id.
- optional int32 render_widget_id = 10;
+ optional int32 render_widget_id = 2;
// Seconds since client platform start (boot) with millisecond resolution.
// On Android, this is based off of the client's SystemClock#uptimeMillis().
- optional double timestamp_seconds = 2;
+ optional double timestamp_seconds = 3;
- optional GestureCommon gesture_common = 3;
+ optional GestureCommon gesture_common = 4;
// Input event specific messages follow.
// Only one of these fields may be set per InputMessage.
// TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See
// crbug.com/570371.
- optional GestureScrollBegin gesture_scroll_begin = 4;
- optional GestureScrollUpdate gesture_scroll_update = 5;
- optional GestureFlingStart gesture_fling_start = 6;
- optional GestureFlingCancel gesture_fling_cancel = 7;
- optional GestureTap gesture_tap = 8;
- optional GesturePinchUpdate gesture_pinch_update = 9;
+ optional GestureScrollBegin gesture_scroll_begin = 5;
+ optional GestureScrollUpdate gesture_scroll_update = 6;
+ optional GestureFlingStart gesture_fling_start = 7;
+ optional GestureFlingCancel gesture_fling_cancel = 8;
+ optional GestureTap gesture_tap = 9;
+ optional GesturePinchUpdate gesture_pinch_update = 10;
+ optional GestureTapDown gesture_tap_down = 11;
+ optional GestureShowPress gesture_show_press = 12;
}
« no previous file with comments | « no previous file | blimp/engine/session/blimp_engine_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698