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

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

Issue 6697024: client-side wheel mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unused usings Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
11 package remoting.protocol; 11 package remoting.protocol;
12 12
13 // Defines a keyboard event. 13 // Defines a keyboard event.
14 // NEXT ID: 3
15 message KeyEvent { 14 message KeyEvent {
16 // The POSIX key code. 15 // The POSIX key code.
17 required int32 keycode = 1; 16 required int32 keycode = 1;
18 required bool pressed = 2; 17 required bool pressed = 2;
19 } 18 }
20 19
21 // Defines a mouse event message on the event channel. 20 // Defines a mouse event message on the event channel.
22 message MouseEvent { 21 message MouseEvent {
23 22
24 enum MouseButton { 23 enum MouseButton {
25 BUTTON_UNDEFINED = 0; 24 BUTTON_UNDEFINED = 0;
26 BUTTON_LEFT = 1; 25 BUTTON_LEFT = 1;
27 BUTTON_MIDDLE = 2; 26 BUTTON_MIDDLE = 2;
28 BUTTON_RIGHT = 3; 27 BUTTON_RIGHT = 3;
29 BUTTON_MAX = 4; 28 BUTTON_MAX = 4;
30 } 29 }
31 30
32 // Mouse position information. 31 // Mouse position information.
33 optional int32 x = 1; 32 optional int32 x = 1;
34 optional int32 y = 2; 33 optional int32 y = 2;
35 34
36 // Mouse wheel information. 35 // Mouse wheel information.
36 // These values encode the number of wheel 'ticks' (or 'clicks').
Wez 2011/10/13 00:38:01 nit: Consider explaining that "ticks" is the most
garykac 2011/10/13 21:18:53 Done.
37 // TODO(garykac): Add support for high-resolution devices that give
38 // 'delta's that are accumulated to make a single tick.
Wez 2011/10/13 00:38:01 nit: Remove the TODO, and instead just say "We may
garykac 2011/10/13 21:18:53 Done.
37 optional int32 wheel_offset_x = 3; 39 optional int32 wheel_offset_x = 3;
38 optional int32 wheel_offset_y = 4; 40 optional int32 wheel_offset_y = 4;
39 41
40 // Mouse button event. 42 // Mouse button event.
41 optional MouseButton button = 5; 43 optional MouseButton button = 5;
42 optional bool button_down = 6; 44 optional bool button_down = 6;
43 } 45 }
OLDNEW
« remoting/host/event_executor_win.cc ('K') | « remoting/host/event_executor_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698