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

Side by Side Diff: chrome/browser/resources/settings/site_settings/edit_exception_dialog.html

Issue 2795353002: WebUI: For cr-dialog, handle Enter keys in paper-inputs. (Closed)
Patch Set: update tests Created 3 years, 8 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/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html "> 2 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.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="site_settings_prefs_browser_proxy.html"> 6 <link rel="import" href="site_settings_prefs_browser_proxy.html">
7 7
8 <dom-module id="settings-edit-exception-dialog"> 8 <dom-module id="settings-edit-exception-dialog">
9 <template> 9 <template>
10 <style include="settings-shared"></style> 10 <style include="settings-shared"></style>
11 <dialog is="cr-dialog" id="dialog"> 11 <dialog is="cr-dialog" id="dialog">
12 <div class="title">$i18n{editSiteTitle}</div> 12 <div class="title">$i18n{editSiteTitle}</div>
13 <div class="body"> 13 <div class="body">
14 <paper-input always-float-label label="$i18n{addSite}" 14 <paper-input always-float-label label="$i18n{addSite}"
15 placeholder="$i18n{addSiteExceptionPlaceholder}" 15 placeholder="$i18n{addSiteExceptionPlaceholder}" value="{{origin_}}"
16 value="{{origin_}}" on-input="validate_" on-keypress="onKeypress_" 16 on-input="validate_" error-message="$i18n{notValidWebAddress}"
17 error-message="$i18n{notValidWebAddress}" invalid="[[invalid_]]" 17 invalid="[[invalid_]]" autofocus>
18 autofocus>
19 </paper-input> 18 </paper-input>
20 </div> 19 </div>
21 <div class="button-container"> 20 <div class="button-container">
22 <div class="action-buttons"> 21 <div class="action-buttons">
23 <paper-button class="cancel-button" on-tap="onCancelTap_" 22 <paper-button class="cancel-button" on-tap="onCancelTap_"
24 id="cancel">$i18n{cancel}</paper-button> 23 id="cancel">$i18n{cancel}</paper-button>
25 <paper-button id="actionButton" class="action-button" 24 <paper-button id="actionButton" class="action-button"
26 on-tap="onActionButtonTap_" disabled="[[invalid_]]"> 25 on-tap="onActionButtonTap_" disabled="[[invalid_]]">
27 $i18n{edit} 26 $i18n{edit}
28 </paper-button> 27 </paper-button>
29 </div> 28 </div>
30 </div> 29 </div>
31 </dialog> 30 </dialog>
32 </template> 31 </template>
33 <script src="edit_exception_dialog.js"></script> 32 <script src="edit_exception_dialog.js"></script>
34 </dom-module> 33 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698