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

Side by Side Diff: remoting/proto/event.proto

Issue 799233004: Add touch events to the protocol, the stub layer, and to the client plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « remoting/host/win/session_input_injector.cc ('k') | remoting/proto/internal.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Protocol for event messages. 5 // Protocol for event messages.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Defines an event that sends clipboard data between peers. 73 // Defines an event that sends clipboard data between peers.
74 message ClipboardEvent { 74 message ClipboardEvent {
75 75
76 // The MIME type of the data being sent. 76 // The MIME type of the data being sent.
77 optional string mime_type = 1; 77 optional string mime_type = 1;
78 78
79 // The data being sent. 79 // The data being sent.
80 optional bytes data = 2; 80 optional bytes data = 2;
81 } 81 }
82
83 message TouchEventPoint {
84 // The ID for the touch point.
85 optional uint32 id = 1;
86
87 // The position of the touch point.
88 // These values on-the-wire are host coordinates.
89 optional float x = 2;
90 optional float y = 3;
91
92 // The size of the touch point, used to aid hit-testing.
93 // Scaled to match the size on host.
94 optional float radius_x = 4;
95 optional float radius_y = 5;
96
97 // Angle in degrees from the y-axis of the touch point.
98 optional float angle = 6;
99
100 // The pressure of the touch point.
101 // The value should be in [0.0, 1.0].
102 optional float pressure = 7;
103 }
104
105 message TouchEvent {
106 // A START event means that this event reports all the touch points that were
107 // just added, e.g. a finger started touching the display.
108 // A MOVE event means that the touch points that have been STARTed moved,
109 // e.g. multiple fingers on the screen moved.
110 // An END event means that the touch points that have been STARTed ended.
111 // e.g. a finger went off the screen.
112 // A CANCEL event means that the touch points that have been STARTed were
113 // canceled, e.g. a finger went off the screen.
114 // Cancel event is simlar to END but slighly different. For example, Android
115 // MotionEvent's ACTION_CANCEL documentation mentions that a cancel should be
116 // treated as an ACTION_UP (END) event but might not perform the exact same
117 // actions as a normal ACTION_UP event.
118 enum TouchEventType {
119 TOUCH_POINT_START = 1;
120 TOUCH_POINT_MOVE = 2;
121 TOUCH_POINT_END = 3;
122 TOUCH_POINT_CANCEL = 4;
123 };
124
125 optional TouchEventType event_type = 1;
126
127 // Only the changed touch points are added to this field.
128 // Given the existing touch point APIs (e.g. Android and PPAPI)
129 // for START, END, and CANCEL events the size of this field will typically be
130 // 1, but for MOVE events it is likely to have multiple points.
131 repeated TouchEventPoint touch_points = 2;
132 }
OLDNEW
« no previous file with comments | « remoting/host/win/session_input_injector.cc ('k') | remoting/proto/internal.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698