| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 optional uint32 render_widget_id = 10; | 80 optional uint32 render_widget_id = 10; |
| 81 | 81 |
| 82 // Seconds since client platform start (boot) with millisecond resolution. | 82 // Seconds since client platform start (boot) with millisecond resolution. |
| 83 // On Android, this is based off of the client's SystemClock#uptimeMillis(). | 83 // On Android, this is based off of the client's SystemClock#uptimeMillis(). |
| 84 optional double timestamp_seconds = 2; | 84 optional double timestamp_seconds = 2; |
| 85 | 85 |
| 86 optional GestureCommon gesture_common = 3; | 86 optional GestureCommon gesture_common = 3; |
| 87 | 87 |
| 88 // Input event specific messages follow. | 88 // Input event specific messages follow. |
| 89 // Only one of these fields may be set per InputMessage. | 89 // Only one of these fields may be set per InputMessage. |
| 90 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. | 90 // TODO(dtrainor): use a 'oneof' union when it's supported in Chromium. See |
| 91 // crbug.com/570371. |
| 91 optional GestureScrollBegin gesture_scroll_begin = 4; | 92 optional GestureScrollBegin gesture_scroll_begin = 4; |
| 92 optional GestureScrollUpdate gesture_scroll_update = 5; | 93 optional GestureScrollUpdate gesture_scroll_update = 5; |
| 93 optional GestureFlingStart gesture_fling_start = 6; | 94 optional GestureFlingStart gesture_fling_start = 6; |
| 94 optional GestureFlingCancel gesture_fling_cancel = 7; | 95 optional GestureFlingCancel gesture_fling_cancel = 7; |
| 95 optional GestureTap gesture_tap = 8; | 96 optional GestureTap gesture_tap = 8; |
| 96 optional GesturePinchUpdate gesture_pinch_update = 9; | 97 optional GesturePinchUpdate gesture_pinch_update = 9; |
| 97 } | 98 } |
| 98 | 99 |
| OLD | NEW |