OLD | NEW |
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // Defines an event message on the event channel. | 84 // Defines an event message on the event channel. |
85 message Event { | 85 message Event { |
86 required int32 timestamp = 1; // Client timestamp for event | 86 required int32 timestamp = 1; // Client timestamp for event |
87 optional bool dummy = 2; // Is this a dummy event? | 87 optional bool dummy = 2; // Is this a dummy event? |
88 | 88 |
89 optional KeyEvent key = 3; | 89 optional KeyEvent key = 3; |
90 optional MouseEvent mouse = 4; | 90 optional MouseEvent mouse = 4; |
91 } | 91 } |
92 | 92 |
93 // Defines the message that is sent from client to host. | 93 // Message sent in the event channel. |
94 // Only one of the optional messages should be present. | 94 message EventMessage { |
95 message ClientEventMessage { | 95 repeated Event event = 1; |
96 repeated Event events = 1; | |
97 } | 96 } |
98 | |
99 // Defines the message that is sent from host to client. | |
100 // Only one of the optional messages should be present. | |
101 message HostEventMessage { | |
102 // TODO(hclam): Define the message. | |
103 } | |
OLD | NEW |