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 control messages. | 5 // Message definitions for browser 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 "size.proto"; |
| 12 |
| 13 package blimp; |
| 14 |
11 message ControlMessage { | 15 message ControlMessage { |
12 enum Type { | 16 enum Type { |
13 UNKNOWN = 0; | 17 UNKNOWN = 0; |
14 | 18 |
15 // Client <=> Server types. | 19 // Client <=> Server types. |
16 CREATE_TAB = 1; | 20 CREATE_TAB = 1; |
17 CLOSE_TAB = 2; | 21 CLOSE_TAB = 2; |
| 22 |
| 23 // Client => Server types. |
| 24 SIZE = 3; |
18 } | 25 } |
| 26 |
19 optional Type type = 1; | 27 optional Type type = 1; |
| 28 |
| 29 // Feature-specific messages follow. |
| 30 // Only one of these fields may be set per ControlMessage. |
| 31 optional SizeMessage resize = 1000; |
20 } | 32 } |
OLD | NEW |