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

Side by Side Diff: ui/webui/resources/cr_elements/cr_dialog/cr_dialog.html

Issue 2891993002: WebUI: Stop keypresses on the close icon from firing the Enter handler. (Closed)
Patch Set: Created 3 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/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/assert.html"> 2 <link rel="import" href="chrome://resources/html/assert.html">
3 <link rel="import" href="chrome://resources/html/polymer.html"> 3 <link rel="import" href="chrome://resources/html/polymer.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/default-th eme.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/default-th eme.html">
6 6
7 <dom-module id="cr-dialog"> 7 <dom-module id="cr-dialog">
8 <template> 8 <template>
9 <style> 9 <style>
10 :host { 10 :host {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 -webkit-margin-end: 4px; 108 -webkit-margin-end: 4px;
109 padding: 10px; /* Makes the actual icon 16x16. */ 109 padding: 10px; /* Makes the actual icon 16x16. */
110 } 110 }
111 </style> 111 </style>
112 <div class="top-container"> 112 <div class="top-container">
113 <div class="title-container" tabindex="-1"> 113 <div class="title-container" tabindex="-1">
114 <content select=".title"></content> 114 <content select=".title"></content>
115 </div> 115 </div>
116 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close" 116 <paper-icon-button icon="cr:clear" on-tap="cancel" id="close"
117 aria-label$="[[closeText]]"> 117 aria-label$="[[closeText]]" on-keypress="onCloseKeypress_">
118 </paper-icon-button> 118 </paper-icon-button>
119 </div> 119 </div>
120 <div class="body-container"> 120 <div class="body-container">
121 <span id="bodyTopMarker"></span> 121 <span id="bodyTopMarker"></span>
122 <content select=".body"></content> 122 <content select=".body"></content>
123 <span id="bodyBottomMarker"></span> 123 <span id="bodyBottomMarker"></span>
124 </div> 124 </div>
125 <content select=".button-container"></content> 125 <content select=".button-container"></content>
126 <content select=".footer"></content> 126 <content select=".footer"></content>
127 </template> 127 </template>
128 <script src="cr_dialog.js"></script> 128 <script src="cr_dialog.js"></script>
129 </dom-module> 129 </dom-module>
OLDNEW
« no previous file with comments | « chrome/test/data/webui/cr_elements/cr_dialog_test.js ('k') | ui/webui/resources/cr_elements/cr_dialog/cr_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698