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

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

Issue 5068001: Move move classes to the remoting::protocol namespace. Minor cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes for windows Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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; 11 package remoting.protocol;
12 12
13 // Defines a keyboard event. 13 // Defines a keyboard event.
14 // NEXT ID: 3 14 // NEXT ID: 3
15 message KeyEvent { 15 message KeyEvent {
16 // The POSIX key code. 16 // The POSIX key code.
17 required int32 key = 1; 17 required int32 key = 1;
18 required bool pressed = 2; 18 required bool pressed = 2;
19 } 19 }
20 20
21 enum MouseButton {
22 MouseButtonUndefined = 0;
23 MouseButtonLeft = 1;
24 MouseButtonMiddle = 2;
25 MouseButtonRight = 3;
26 }
27
28 // Defines a mouse event message on the event channel. 21 // Defines a mouse event message on the event channel.
29 message MouseEvent { 22 message MouseEvent {
23
24 enum MouseButton {
25 BUTTON_UNDEFINED = 0;
26 BUTTON_LEFT = 1;
27 BUTTON_MIDDLE = 2;
28 BUTTON_RIGHT = 3;
29 }
30
30 // Mouse position information. 31 // Mouse position information.
31 optional int32 x = 1; 32 optional int32 x = 1;
32 optional int32 y = 2; 33 optional int32 y = 2;
33 34
34 // Mouse wheel information. 35 // Mouse wheel information.
35 optional int32 wheel_offset_x = 3; 36 optional int32 wheel_offset_x = 3;
36 optional int32 wheel_offset_y = 4; 37 optional int32 wheel_offset_y = 4;
37 38
38 // Mouse button event. 39 // Mouse button event.
39 optional MouseButton button = 5; 40 optional MouseButton button = 5;
40 optional bool button_down = 6; 41 optional bool button_down = 6;
41 } 42 }
42 43
43 // Defines an event message on the event channel. 44 // Defines an event message on the event channel.
44 message Event { 45 message Event {
45 required int32 timestamp = 1; // Client timestamp for event 46 required int32 timestamp = 1; // Client timestamp for event
46 optional bool dummy = 2; // Is this a dummy event? 47 optional bool dummy = 2; // Is this a dummy event?
47 48
48 optional KeyEvent key = 3; 49 optional KeyEvent key = 3;
49 optional MouseEvent mouse = 4; 50 optional MouseEvent mouse = 4;
50 } 51 }
51 52
52 // Message sent in the event channel. 53 // Message sent in the event channel.
53 message EventMessage { 54 message EventMessage {
54 repeated Event event = 1; 55 repeated Event event = 1;
55 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698