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

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

Issue 6271004: Changed MessageReader so that it doesn't read from the socket if there are (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: proper handling of empty messages Created 9 years, 11 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) 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
(...skipping 24 matching lines...) Expand all
35 // Mouse wheel information. 35 // Mouse wheel information.
36 optional int32 wheel_offset_x = 3; 36 optional int32 wheel_offset_x = 3;
37 optional int32 wheel_offset_y = 4; 37 optional int32 wheel_offset_y = 4;
38 38
39 // Mouse button event. 39 // Mouse button event.
40 optional MouseButton button = 5; 40 optional MouseButton button = 5;
41 optional bool button_down = 6; 41 optional bool button_down = 6;
42 } 42 }
43 43
44 // Defines an event message on the event channel. 44 // Defines an event message on the event channel.
45 message Event { 45 message EventMessage {
awong 2011/01/20 20:06:38 Nit, I would just called his "event" or better "In
Sergey Ulanov 2011/01/20 21:55:57 I think it is better to call it EventMessage for c
46 required int32 timestamp = 1; // Client timestamp for event 46 required int32 timestamp = 1; // Client timestamp for event
47 optional bool dummy = 2; // Is this a dummy event? 47 optional bool dummy = 2; // Is this a dummy event?
48 48
49 optional KeyEvent key = 3; 49 optional KeyEvent key = 3;
50 optional MouseEvent mouse = 4; 50 optional MouseEvent mouse = 4;
51 } 51 }
52
53 // Message sent in the event channel.
54 message EventMessage {
55 repeated Event event = 1;
56 }
OLDNEW
« no previous file with comments | « no previous file | remoting/protocol/client_message_dispatcher.h » ('j') | remoting/protocol/client_message_dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698