Chromium Code Reviews| 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 24 matching lines...) Expand all Loading... | |
| 35 // pairs, e.g.: | 35 // pairs, e.g.: |
| 36 // "name1=value1,name2={template1},...". | 36 // "name1=value1,name2={template1},...". |
| 37 // In each name/value pair, the equal sign('=') must be delimiter between | 37 // 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 | 38 // 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 | 39 // "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. | 40 // for name2, the actual value will be replaced with real search terms data. |
| 41 { "field": "search_url_post_params", "type": "string", "optional": true }, | 41 { "field": "search_url_post_params", "type": "string", "optional": true }, |
| 42 { "field": "suggest_url_post_params", "type": "string", "optional": true }, | 42 { "field": "suggest_url_post_params", "type": "string", "optional": true }, |
| 43 { "field": "instant_url_post_params", "type": "string", "optional": true }, | 43 { "field": "instant_url_post_params", "type": "string", "optional": true }, |
| 44 { "field": "image_url_post_params", "type": "string", "optional": true }, | 44 { "field": "image_url_post_params", "type": "string", "optional": true }, |
| 45 // If omitted, this engine does not support rendering a new tab page. | |
| 46 { "field": "new_tab_url", "type": "string", "optional": true }, | |
|
samarth
2013/08/13 23:47:59
I don't see a need for new_tab_url_post_params but
Jered
2013/08/14 15:41:49
Hrm I'm not sure. I don't anticipate ever wanting
| |
| 45 // A list of URL patterns that can be used, in addition to |search_url|, | 47 // A list of URL patterns that can be used, in addition to |search_url|, |
| 46 // to extract search terms from a URL. | 48 // to extract search terms from a URL. |
| 47 // If "search_url_post_params" is not empty, then all alternate URLs are | 49 // If "search_url_post_params" is not empty, then all alternate URLs are |
| 48 // sent using POST with using same post parameters as the search URL. | 50 // sent using POST with using same post parameters as the search URL. |
| 49 { | 51 { |
| 50 "field": "alternate_urls", | 52 "field": "alternate_urls", |
| 51 "type": "array", | 53 "type": "array", |
| 52 "contents": { "type": "string" }, | 54 "contents": { "type": "string" }, |
| 53 "optional": true | 55 "optional": true |
| 54 }, | 56 }, |
| (...skipping 25 matching lines...) Expand all 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 |