OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Message definitions for browser tab control messages. | 5 // Message definitions for browser tab control 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 import "common.proto"; |
| 12 |
11 package blimp; | 13 package blimp; |
12 | 14 |
13 // Contains display information that represents resize events coming from the | 15 // Contains display information that represents resize events coming from the |
14 // client device. | 16 // client device. |
15 message SizeMessage { | 17 message SizeMessage { |
16 optional uint64 width = 1; | 18 optional uint64 width = 1; |
17 optional uint64 height = 2; | 19 optional uint64 height = 2; |
18 optional float device_pixel_ratio = 3; | 20 optional float device_pixel_ratio = 3; |
19 } | 21 } |
20 | 22 |
21 message EmptyMessage {} | |
22 | |
23 message TabControlMessage { | 23 message TabControlMessage { |
24 // Feature-specific messages follow. | 24 // Feature-specific messages follow. |
25 oneof tab_control { | 25 oneof tab_control { |
26 // Client <=> Server types. | 26 // Client <=> Server types. |
27 EmptyMessage create_tab = 40; | 27 EmptyMessage create_tab = 40; |
28 EmptyMessage close_tab = 41; | 28 EmptyMessage close_tab = 41; |
29 | 29 |
30 // Client => Server types. | 30 // Client => Server types. |
31 SizeMessage size = 42; | 31 SizeMessage size = 42; |
32 } | 32 } |
33 } | 33 } |
OLD | NEW |