Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: chrome/browser/search_engines/prepopulated_engines_schema.json

Issue 22945004: InstantExtended: Add new_tab_url to TemplateURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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.
Peter Kasting 2013/08/14 23:21:45 Nit: Move this above the post_params fields (and i
Jered 2013/08/15 16:44:03 Done. I don't have a preference about interleaving
46 { "field": "new_tab_url", "type": "string", "optional": true },
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698