OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file is used by json_to_struct.py to generate prepopulated_engine.h/cc. | 5 // This file is used by json_to_struct.py to generate prepopulated_engine.h/cc. |
6 // Any time you modify this file regenerate the .h/.cc. See | 6 // Any time you modify this file regenerate the .h/.cc. See |
7 // prepopulated_engines.json for details. | 7 // prepopulated_engines.json for details. |
8 | 8 |
9 { | 9 { |
10 "type_name": "PrepopulatedEngine", | 10 "type_name": "PrepopulatedEngine", |
(...skipping 10 matching lines...) Expand all Loading... |
21 "type": "string", | 21 "type": "string", |
22 "default": "UTF-8", | 22 "default": "UTF-8", |
23 "optional": true | 23 "optional": true |
24 }, | 24 }, |
25 // If omitted, this engine does not support suggestions. | 25 // If omitted, this engine does not support suggestions. |
26 { "field": "suggest_url", "type": "string", "optional": true }, | 26 { "field": "suggest_url", "type": "string", "optional": true }, |
27 // If omitted, this engine does not support instant. | 27 // If omitted, this engine does not support instant. |
28 { "field": "instant_url", "type": "string", "optional": true }, | 28 { "field": "instant_url", "type": "string", "optional": true }, |
29 // If omitted, this engine does not support image search. | 29 // If omitted, this engine does not support image search. |
30 { "field": "image_url", "type": "string", "optional": true }, | 30 { "field": "image_url", "type": "string", "optional": true }, |
| 31 // If omitted, this engine does not support rendering a new tab page. |
| 32 { "field": "new_tab_url", "type": "string", "optional": true }, |
31 // The followings are post parameters for the corresponding search URL. | 33 // The followings are post parameters for the corresponding search URL. |
32 // If omitted, a GET request will be sent when using the corresponding | 34 // If omitted, a GET request will be sent when using the corresponding |
33 // search URL. Otherwise, a POST request will be sent. | 35 // search URL. Otherwise, a POST request will be sent. |
34 // The string of post parameters consists of comma-separated name/value | 36 // The string of post parameters consists of comma-separated name/value |
35 // pairs, e.g.: | 37 // pairs, e.g.: |
36 // "name1=value1,name2={template1},...". | 38 // "name1=value1,name2={template1},...". |
37 // In each name/value pair, the equal sign('=') must be delimiter between | 39 // In each name/value pair, the equal sign('=') must be delimiter between |
38 // name and value. In above example, the "value1" is the constant value for | 40 // name and value. In above example, the "value1" is the constant value for |
39 // "name1", which is not replaceable. The {template1} is a replaceable value | 41 // "name1", which is not replaceable. The {template1} is a replaceable value |
40 // for name2, the actual value will be replaced with real search terms data. | 42 // for name2, the actual value will be replaced with real search terms data. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // the future; in such a case the localized engines will transparently | 82 // the future; in such a case the localized engines will transparently |
81 // replace the previous, non-localized versions. For engines where we need | 83 // replace the previous, non-localized versions. For engines where we need |
82 // two instances to appear for one country (e.g. Bing Search U.S. English | 84 // two instances to appear for one country (e.g. Bing Search U.S. English |
83 // and Spanish), we must use two different unique IDs (and different | 85 // and Spanish), we must use two different unique IDs (and different |
84 // keywords). | 86 // keywords). |
85 // | 87 // |
86 // See prepopulated_engines.json for the list of available IDs. | 88 // See prepopulated_engines.json for the list of available IDs. |
87 { "field": "id", "type": "int" } | 89 { "field": "id", "type": "int" } |
88 ] | 90 ] |
89 } | 91 } |
OLD | NEW |