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