| 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 12 matching lines...) Expand all Loading... |
| 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. | 31 // If omitted, this engine does not support rendering a new tab page. |
| 32 { "field": "new_tab_url", "type": "string", "optional": true }, | 32 { "field": "new_tab_url", "type": "string", "optional": true }, |
| 33 // If omitted, this engine does not support contextual search. |
| 34 { "field": "contextual_search_url", "type": "string", "optional": true }, |
| 33 // The followings are post parameters for the corresponding search URL. | 35 // The followings are post parameters for the corresponding search URL. |
| 34 // If omitted, a GET request will be sent when using the corresponding | 36 // If omitted, a GET request will be sent when using the corresponding |
| 35 // search URL. Otherwise, a POST request will be sent. | 37 // search URL. Otherwise, a POST request will be sent. |
| 36 // The string of post parameters consists of comma-separated name/value | 38 // The string of post parameters consists of comma-separated name/value |
| 37 // pairs, e.g.: | 39 // pairs, e.g.: |
| 38 // "name1=value1,name2={template1},...". | 40 // "name1=value1,name2={template1},...". |
| 39 // In each name/value pair, the equal sign('=') must be delimiter between | 41 // In each name/value pair, the equal sign('=') must be delimiter between |
| 40 // name and value. In above example, the "value1" is the constant value for | 42 // name and value. In above example, the "value1" is the constant value for |
| 41 // "name1", which is not replaceable. The {template1} is a replaceable value | 43 // "name1", which is not replaceable. The {template1} is a replaceable value |
| 42 // for name2, the actual value will be replaced with real search terms data. | 44 // 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... |
| 82 // the future; in such a case the localized engines will transparently | 84 // the future; in such a case the localized engines will transparently |
| 83 // replace the previous, non-localized versions. For engines where we need | 85 // replace the previous, non-localized versions. For engines where we need |
| 84 // two instances to appear for one country (e.g. Bing Search U.S. English | 86 // two instances to appear for one country (e.g. Bing Search U.S. English |
| 85 // and Spanish), we must use two different unique IDs (and different | 87 // and Spanish), we must use two different unique IDs (and different |
| 86 // keywords). | 88 // keywords). |
| 87 // | 89 // |
| 88 // See prepopulated_engines.json for the list of available IDs. | 90 // See prepopulated_engines.json for the list of available IDs. |
| 89 { "field": "id", "type": "int" } | 91 { "field": "id", "type": "int" } |
| 90 ] | 92 ] |
| 91 } | 93 } |
| OLD | NEW |