Chromium Code Reviews| 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/html/web_ui_listener_behavior.html"> | |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11 y-keys.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11 y-keys.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> |
| 6 <link rel="import" href="/i18n_setup.html"> | 7 <link rel="import" href="/i18n_setup.html"> |
| 7 <link rel="import" href="/settings_shared_css.html"> | 8 <link rel="import" href="/settings_shared_css.html"> |
| 8 <link rel="import" href="/site_settings/constants.html"> | 9 <link rel="import" href="/site_settings/constants.html"> |
| 9 <link rel="import" href="/site_settings/site_settings_behavior.html"> | 10 <link rel="import" href="/site_settings/site_settings_behavior.html"> |
| 10 | 11 |
| 11 <dom-module id="add-site-dialog"> | 12 <dom-module id="add-site-dialog"> |
| 12 <template> | 13 <template> |
| 13 <style include="settings-shared"></style> | 14 <style include="settings-shared"> |
| 15 #incognito { | |
| 16 margin-top: 15px; | |
| 17 } | |
| 18 </style> | |
| 14 <dialog is="cr-dialog" id="dialog"> | 19 <dialog is="cr-dialog" id="dialog"> |
| 15 <div class="title">$i18n{addSiteHeader}</div> | 20 <div class="title">$i18n{addSiteHeader}</div> |
| 16 <div class="body"> | 21 <div class="body"> |
| 17 <span class="start">$i18n{addSite}</span> | 22 <span class="start">$i18n{addSite}</span> |
| 18 <iron-a11y-keys id="keys" keys="enter" | 23 <iron-a11y-keys id="keys" keys="enter" |
| 19 on-keys-pressed="onSubmit_"></iron-a11y-keys> | 24 on-keys-pressed="onSubmit_"></iron-a11y-keys> |
| 20 <paper-input type="text" id="site" autofocus | 25 <paper-input type="text" id="site" autofocus |
| 21 value="{{site_}}" on-input="validate_"></paper-input> | 26 value="{{site_}}" on-input="validate_"></paper-input> |
| 27 <paper-checkbox id="incognito"> | |
| 28 <div>$i18n{incognitoSiteOnly}</div> | |
|
dschuyler
2016/09/01 23:13:49
Does this need the <div>
(Asking because I'm not s
Finnur
2016/09/02 15:44:14
Nope. Totally redundant. Removed.
| |
| 29 </paper-checkbox> | |
| 22 </div> | 30 </div> |
| 23 <div class="button-container"> | 31 <div class="button-container"> |
| 24 <paper-button class="cancel-button" on-tap="onCancelTap_"> | 32 <paper-button class="cancel-button" on-tap="onCancelTap_"> |
| 25 $i18n{cancel} | 33 $i18n{cancel} |
| 26 </paper-button> | 34 </paper-button> |
| 27 <paper-button class="action-button" id="add" | 35 <paper-button class="action-button" id="add" |
| 28 on-tap="onSubmit_" disabled> | 36 on-tap="onSubmit_" disabled> |
| 29 $i18n{add} | 37 $i18n{add} |
| 30 </paper-button> | 38 </paper-button> |
| 31 </div> | 39 </div> |
| 32 </dialog> | 40 </dialog> |
| 33 </template> | 41 </template> |
| 34 <script src="add_site_dialog.js"></script> | 42 <script src="add_site_dialog.js"></script> |
| 35 </dom-module> | 43 </dom-module> |
| OLD | NEW |