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

Side by Side Diff: blimp/common/proto/input.proto

Issue 1450423002: Add glue between the client and engine for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_ipc2
Patch Set: Fix build break Created 5 years 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 unified diff | Download patch
« no previous file with comments | « blimp/common/proto/control.proto ('k') | blimp/common/proto/render_widget.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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";
11 11
12 option optimize_for = LITE_RUNTIME; 12 option optimize_for = LITE_RUNTIME;
13 13
14 import "common.proto";
15
16 package blimp; 14 package blimp;
17 15
18 message GestureCommon { 16 message GestureCommon {
19 optional int64 x = 1; 17 optional int64 x = 1;
20 optional int64 y = 2; 18 optional int64 y = 2;
21 optional int64 global_x = 3; 19 optional int64 global_x = 3;
22 optional int64 global_y = 4; 20 optional int64 global_y = 4;
23 } 21 }
24 22
25 message GestureScrollBegin { 23 message GestureScrollBegin {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 Type_GestureFlingStart = 4; 69 Type_GestureFlingStart = 4;
72 Type_GestureFlingCancel = 5; 70 Type_GestureFlingCancel = 5;
73 Type_GestureTap = 6; 71 Type_GestureTap = 6;
74 Type_GesturePinchBegin = 7; 72 Type_GesturePinchBegin = 7;
75 Type_GesturePinchEnd = 8; 73 Type_GesturePinchEnd = 8;
76 Type_GesturePinchUpdate = 9; 74 Type_GesturePinchUpdate = 9;
77 } 75 }
78 76
79 optional Type type = 1; 77 optional Type type = 1;
80 78
79 // An ID that corresponds to RenderWidgetMessage.render_widget_id.
80 optional uint32 render_widget_id = 10;
81
81 // Seconds since client platform start (boot) with millisecond resolution. 82 // Seconds since client platform start (boot) with millisecond resolution.
82 // 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().
83 optional double timestamp_seconds = 2; 84 optional double timestamp_seconds = 2;
84 85
85 optional GestureCommon gesture_common = 3; 86 optional GestureCommon gesture_common = 3;
86 87
87 // Input event specific messages follow. 88 // Input event specific messages follow.
88 // Only one of these fields may be set per InputMessage. 89 // Only one of these fields may be set per InputMessage.
89 // 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.
90 optional GestureScrollBegin gesture_scroll_begin = 4; 91 optional GestureScrollBegin gesture_scroll_begin = 4;
91 optional GestureScrollUpdate gesture_scroll_update = 5; 92 optional GestureScrollUpdate gesture_scroll_update = 5;
92 optional GestureFlingStart gesture_fling_start = 6; 93 optional GestureFlingStart gesture_fling_start = 6;
93 optional GestureFlingCancel gesture_fling_cancel = 7; 94 optional GestureFlingCancel gesture_fling_cancel = 7;
94 optional GestureTap gesture_tap = 8; 95 optional GestureTap gesture_tap = 8;
95 optional GesturePinchUpdate gesture_pinch_update = 9; 96 optional GesturePinchUpdate gesture_pinch_update = 9;
96 } 97 }
97 98
OLDNEW
« no previous file with comments | « blimp/common/proto/control.proto ('k') | blimp/common/proto/render_widget.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698