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 client-originating browser control messages. | 5 // Message definitions for client-originating browser control messages. |
Kevin M
2015/10/15 22:01:56
Not client-originating anymore
haibinlu
2015/10/15 22:12:32
Done.
| |
6 // | 6 // |
7 // Current definitions are just placeholders and are NOT final. | 7 // Current definitions are just placeholders and are NOT final. |
Kevin M
2015/10/15 22:01:56
Remove these lines
haibinlu
2015/10/15 22:12:32
Done.
| |
8 // Feel free to modify this interface as necessary during feature work. | 8 // Feel free to modify this interface as necessary during feature work. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
11 | 11 |
12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
13 | 13 |
14 message NavigateArgs { | 14 message LoadUrlMessage { |
15 optional string url = 1; | 15 optional string url = 1; |
16 } | 16 } |
17 | 17 |
18 message ClientControlMessage { | 18 message ControlMessage { |
19 enum Type { | 19 enum Type { |
20 NAVIGATE = 1; | 20 // Client <=> Server types. |
21 STOP = 2; | 21 CREATE_TAB = 1; |
22 RELOAD = 3; | 22 CLOSE_TAB = 2; |
23 BACK = 4; | 23 LOAD_URL = 3; |
24 FORWARD = 5; | 24 |
25 // Server => Client types. | |
26 // Client => Server types. | |
25 } | 27 } |
26 optional Type type = 1; | 28 optional Type type = 1; |
27 | 29 |
28 optional NavigateArgs navigate = 1000; | 30 // When the type is LOAD_URL. |
Kevin M
2015/10/15 22:01:56
Not necessary; naming convention covers us there.
haibinlu
2015/10/15 22:12:32
Done.
| |
31 optional LoadUrlMessage load_url = 1000; | |
29 } | 32 } |
OLD | NEW |