OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 [ | 5 [ |
6 { | 6 { |
7 "namespace": "commandLinePrivate", | 7 "namespace": "commandLinePrivate", |
| 8 "description": "none", |
8 "functions": [ | 9 "functions": [ |
9 { | 10 { |
10 "name": "hasSwitch", | 11 "name": "hasSwitch", |
11 "type": "function", | 12 "type": "function", |
12 "description": "Returns whether a switch is specified on the command lin
e when launching Chrome.", | 13 "description": "Returns whether a switch is specified on the command lin
e when launching Chrome.", |
13 "parameters": [ | 14 "parameters": [ |
14 { | 15 { |
15 "name": "name", | 16 "name": "name", |
16 "type": "string", | 17 "type": "string", |
17 "description": "The name of a command line switch, without leading \
"--\", such as \"enable-experimental-extension-apis\"." | 18 "description": "The name of a command line switch, without leading \
"--\", such as \"enable-experimental-extension-apis\"." |
18 }, | 19 }, |
19 { | 20 { |
20 "name": "callback", | 21 "name": "callback", |
21 "type": "function", | 22 "type": "function", |
22 "parameters": [ | 23 "parameters": [ |
23 { | 24 { |
24 "name": "result", | 25 "name": "result", |
25 "type": "boolean", | 26 "type": "boolean", |
26 "description": "Whether the switch is specified on the command l
ine." | 27 "description": "Whether the switch is specified on the command l
ine." |
27 } | 28 } |
28 ] | 29 ] |
29 } | 30 } |
30 ] | 31 ] |
31 } | 32 } |
32 ] | 33 ] |
33 } | 34 } |
34 ] | 35 ] |
OLD | NEW |