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

Side by Side Diff: chrome/browser/resources/settings/search_engines_page/search_engine_adder.html

Issue 1128313004: Convert search_engines_page (and search_engine-adder) to be compatible with Polymer 0.8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/v0_8/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html "> 2 <link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html ">
Jeremy Klein 2015/05/12 21:02:36 The cr_elements need v0_8 too.
Kyle Horimoto 2015/05/12 21:41:52 Done.
3 <link rel="import" href="chrome://resources/cr_elements/cr_collapse/cr_collapse. html"> 3 <link rel="import" href="chrome://resources/cr_elements/cr_collapse/cr_collapse. html">
4 <link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html"> 4 <link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html">
5 <link rel="import" href="chrome://resources/polymer/core-style/core-style.html">
6 <link rel="import" href="search_engine_adder_style.html">
7 5
8 <polymer-element name="cr-search-engine-adder"> 6 <dom-module id="cr-search-engine-adder">
7 <link rel="import" type="css" href="search_engine_adder.css">
9 <template> 8 <template>
10 <core-style ref="searchEngineAdderStyle"></core-style> 9 <div class="add-label layout horizontal center justified">
11
12 <div class="add-label" layout horizontal center justified>
13 <span i18n-content="searchEnginesAddSearchEngineLabel"></span> 10 <span i18n-content="searchEnginesAddSearchEngineLabel"></span>
14 <cr-expand-button expanded="{{opened}}"></cr-expand-button> 11 <cr-expand-button expanded="{{opened}}"></cr-expand-button>
15 </div> 12 </div>
16 <cr-collapse opened="{{opened}}"> 13 <cr-collapse opened="{{opened}}">
17 <div class="container" layout horizontal> 14 <div class="container layout horizontal">
Jeremy Klein 2015/05/12 21:02:36 You need to import iron-flex-layout/classes/iron-f
Kyle Horimoto 2015/05/12 21:41:52 Done.
18 <div class="input-field" flex two> 15 <div class="input-field flex two">
19 <div class="input-label" i18n-content="searchEnginesDomainLabel"> 16 <div class="input-label" i18n-content="searchEnginesDomainLabel">
20 </div> 17 </div>
21 <cr-input id="domainField" autoValidate="false" required> 18 <cr-input id="domainField" autoValidate="false" required>
22 </cr-input> 19 </cr-input>
23 </div> 20 </div>
24 <div class="input-field" flex two> 21 <div class="input-field flex two">
25 <div class="input-label" i18n-content="searchEnginesKeywordLabel"> 22 <div class="input-label" i18n-content="searchEnginesKeywordLabel">
26 </div> 23 </div>
27 <cr-input id="keywordField" autoValidate="false" required> 24 <cr-input id="keywordField" autoValidate="false" required>
28 </cr-input> 25 </cr-input>
29 </div> 26 </div>
30 <div class="input-field" flex four> 27 <div class="input-field flex four">
31 <div class="input-label" i18n-content="searchEnginesQueryURLLabel"> 28 <div class="input-label" i18n-content="searchEnginesQueryURLLabel">
32 </div> 29 </div>
33 <cr-input id="queryURLField" autoValidate="false" required> 30 <cr-input id="queryURLField" autoValidate="false" required>
Jeremy Klein 2015/05/12 21:02:36 I think this might need to be auto-validate. Same
Kyle Horimoto 2015/05/12 21:41:52 Done.
34 </cr-input> 31 </cr-input>
35 </div> 32 </div>
36 <div layout horizontal center> 33 <div class="layout horizontal center">
37 <cr-button i18n-content="searchEnginesAddButtonLabel" 34 <cr-button i18n-content="searchEnginesAddButtonLabel"
38 on-click="{{add_}}"raised> 35 on-click="{{add_}}" raised>
39 </cr-button> 36 </cr-button>
40 </div> 37 </div>
41 </div> 38 </div>
42 </cr-collapse> 39 </cr-collapse>
43 </template> 40 </template>
44 <script src="search_engine_adder.js"></script> 41 <script src="search_engine_adder.js"></script>
45 </polymer-element> 42 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698