| 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 // Current definitions are just placeholders and are NOT final. | 7 // Current definitions are just placeholders and are NOT final. |
| 8 // Feel free to modify this interface as necessary during feature work. | 8 // Feel free to modify this interface as necessary during feature work. |
| 9 | 9 |
| 10 syntax = "proto2"; | 10 syntax = "proto2"; |
| 11 | 11 |
| 12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
| 13 | 13 |
| 14 import "common.proto"; | 14 import "common.proto"; |
| 15 | 15 |
| 16 package blimp; | 16 package blimp; |
| 17 | 17 |
| 18 message ClickArgs { | 18 message ClickArgs { |
| 19 optional CoordinatePair target = 1; | 19 optional CoordinatePair target = 1; |
| 20 } | 20 } |
| 21 | 21 |
| 22 message DragArgs { | 22 message DragArgs { |
| 23 optional CoordinatePair origin = 1; | 23 optional CoordinatePair origin = 1; |
| 24 optional CoordinatePair destination = 2; | 24 optional CoordinatePair destination = 2; |
| 25 optional CoordinatePair elastic_overscroll = 3; | 25 optional CoordinatePair elastic_overscroll = 3; |
| 26 } | 26 } |
| 27 | 27 |
| 28 message InputMessage { | 28 message InputMessage { |
| 29 enum Type { | 29 enum Type { |
| 30 UNKNOWN = 0; |
| 30 CLICK = 1; | 31 CLICK = 1; |
| 31 DRAG = 2; | 32 DRAG = 2; |
| 32 } | 33 } |
| 33 optional Type type = 1; | 34 optional Type type = 1; |
| 34 | 35 |
| 35 optional ClickArgs click = 1000; | 36 optional ClickArgs click = 1000; |
| 36 optional DragArgs drag = 1001; | 37 optional DragArgs drag = 1001; |
| 37 } | 38 } |
| 38 | 39 |
| OLD | NEW |