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. |
6 // | 6 // |
7 // Current definitions are just placeholders and are NOT final. | 7 // Current definitions are just placeholders and are NOT final. |
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 NavigateArgs { |
15 optional string url = 1; | 15 optional string url = 1; |
16 } | 16 } |
17 | 17 |
18 message ClientControlMessage { | 18 message ClientControlMessage { |
19 enum Type { | 19 enum Type { |
20 NAVIGATE = 1; | 20 NAVIGATE = 1; |
21 STOP = 2; | 21 STOP = 2; |
22 RELOAD = 3; | 22 RELOAD = 3; |
23 BACK = 4; | 23 BACK = 4; |
24 FORWARD = 5; | 24 FORWARD = 5; |
| 25 NEW_TAB = 6; |
| 26 CLOSE_TAB = 7; |
25 } | 27 } |
26 optional Type type = 1; | 28 optional Type type = 1; |
27 | 29 |
28 optional NavigateArgs navigate = 1000; | 30 optional NavigateArgs navigate = 1000; |
29 } | 31 } |
OLD | NEW |