OLD | NEW |
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
5 <link rel="import" href="../i18n_setup.html"> | 5 <link rel="import" href="../i18n_setup.html"> |
6 <link rel="import" href="search_engines_browser_proxy.html"> | 6 <link rel="import" href="search_engines_browser_proxy.html"> |
7 | 7 |
8 <dom-module id="settings-search-engine-dialog"> | 8 <dom-module id="settings-search-engine-dialog"> |
9 <template> | 9 <template> |
10 <style include="settings-shared"> | 10 <style include="settings-shared"> |
11 :host { | 11 :host { |
12 --paper-input-container: { | 12 --paper-input-container: { |
13 /** | 13 /** |
14 * Saves space for error message. Using calc to leave just enough | 14 * Saves space for error message. Using calc to leave just enough |
15 * space at all font sizes (default 0, grow/shrink with font-size). | 15 * space at all font sizes (default 0, grow/shrink with font-size). |
16 */ | 16 */ |
17 padding-bottom: calc(1rem - 8px); | 17 padding-bottom: calc(1rem - 8px); |
18 }; | 18 }; |
19 } | 19 } |
20 </style> | 20 </style> |
21 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> | 21 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> |
22 <div class="title">[[dialogTitle_]]</div> | 22 <div class="title">[[dialogTitle_]]</div> |
23 <div class="body" on-keypress="onKeypress_"> | 23 <div class="body"> |
24 <paper-input always-float-label id="searchEngine" | 24 <paper-input always-float-label id="searchEngine" |
25 label="$i18n{searchEnginesSearchEngine}" | 25 label="$i18n{searchEnginesSearchEngine}" |
26 error-message="$i18n{notValid}" | 26 error-message="$i18n{notValid}" |
27 value="{{searchEngine_}}" on-input="validate_" | 27 value="{{searchEngine_}}" on-input="validate_" |
28 autofocus> | 28 autofocus> |
29 </paper-input> | 29 </paper-input> |
30 <paper-input always-float-label id="keyword" | 30 <paper-input always-float-label id="keyword" |
31 label="$i18n{searchEnginesKeyword}" | 31 label="$i18n{searchEnginesKeyword}" |
32 error-message="$i18n{notValid}" | 32 error-message="$i18n{notValid}" |
33 value="{{keyword_}}" on-focus="validate_" on-input="validate_"> | 33 value="{{keyword_}}" on-focus="validate_" on-input="validate_"> |
(...skipping 10 matching lines...) Expand all Loading... |
44 $i18n{cancel}</paper-button> | 44 $i18n{cancel}</paper-button> |
45 <paper-button id="actionButton" class="action-button" | 45 <paper-button id="actionButton" class="action-button" |
46 on-tap="onActionButtonTap_"> | 46 on-tap="onActionButtonTap_"> |
47 [[actionButtonText_]] | 47 [[actionButtonText_]] |
48 </paper-button> | 48 </paper-button> |
49 </div> | 49 </div> |
50 </dialog> | 50 </dialog> |
51 </template> | 51 </template> |
52 <script src="search_engine_dialog.js"></script> | 52 <script src="search_engine_dialog.js"></script> |
53 </dom-module> | 53 </dom-module> |
OLD | NEW |