OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Message definitions for the input subprotocol. | 5 // Message definitions for the input subprotocol. |
6 // | 6 // |
7 // The InputMessage protobuf generally carries web input events. Currently we | 7 // The InputMessage protobuf generally carries web input events. Currently we |
8 // just serialize the blink::WebInputEvent POD struct. | 8 // just serialize the blink::WebInputEvent POD struct. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 Type_GestureFlingStart = 4; | 87 Type_GestureFlingStart = 4; |
88 Type_GestureFlingCancel = 5; | 88 Type_GestureFlingCancel = 5; |
89 Type_GestureTap = 6; | 89 Type_GestureTap = 6; |
90 Type_GesturePinchBegin = 7; | 90 Type_GesturePinchBegin = 7; |
91 Type_GesturePinchEnd = 8; | 91 Type_GesturePinchEnd = 8; |
92 Type_GesturePinchUpdate = 9; | 92 Type_GesturePinchUpdate = 9; |
93 } | 93 } |
94 | 94 |
95 optional Type type = 1; | 95 optional Type type = 1; |
96 | 96 |
| 97 // An ID that corresponds to RenderWidgetMessage. |
| 98 optional uint32 render_widget_id = 12; |
| 99 |
97 // The time this input event happened relative to when the client device was | 100 // The time this input event happened relative to when the client device was |
98 // started. | 101 // started. |
99 optional double timestamp_seconds = 2; | 102 optional double timestamp_seconds = 2; |
100 | 103 |
101 // Input event specific messages follow. | 104 // Input event specific messages follow. |
102 // Only one of these fields may be set per InputMessage. | 105 // Only one of these fields may be set per InputMessage. |
103 optional GestureScrollBegin gesture_scroll_begin = 3; | 106 optional GestureScrollBegin gesture_scroll_begin = 3; |
104 optional GestureScrollEnd gesture_scroll_end = 4; | 107 optional GestureScrollEnd gesture_scroll_end = 4; |
105 optional GestureScrollUpdate gesture_scroll_update = 5; | 108 optional GestureScrollUpdate gesture_scroll_update = 5; |
106 optional GestureFlingStart gesture_fling_start = 6; | 109 optional GestureFlingStart gesture_fling_start = 6; |
107 optional GestureFlingCancel gesture_fling_cancel = 7; | 110 optional GestureFlingCancel gesture_fling_cancel = 7; |
108 optional GestureTap gesture_tap = 8; | 111 optional GestureTap gesture_tap = 8; |
109 optional GesturePinchBegin gesture_pinch_begin = 9; | 112 optional GesturePinchBegin gesture_pinch_begin = 9; |
110 optional GesturePinchEnd gesture_pinch_end = 10; | 113 optional GesturePinchEnd gesture_pinch_end = 10; |
111 optional GesturePinchUpdate gesture_pinch_update = 11; | 114 optional GesturePinchUpdate gesture_pinch_update = 11; |
112 } | 115 } |
113 | 116 |
OLD | NEW |