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

Side by Side Diff: chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.html

Issue 2071543003: MD WebUI: Extract settings-dialog into shared cr-dialog element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ) from comment Created 4 years, 6 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/cr_dialog/cr_dialog.html ">
1 <link rel="import" href="chrome://resources/html/cr.html"> 2 <link rel="import" href="chrome://resources/html/cr.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 3 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe s/iron-flex-layout.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele ctor.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele ctor.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html"> 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html">
9 <link rel="import" href="/bluetooth_page/bluetooth_device_list_item.html"> 10 <link rel="import" href="/bluetooth_page/bluetooth_device_list_item.html">
10 <link rel="import" href="/icons.html"> 11 <link rel="import" href="/icons.html">
11 <link rel="import" href="/settings_dialog.html">
12 <link rel="import" href="/settings_shared_css.html"> 12 <link rel="import" href="/settings_shared_css.html">
13 13
14 <dom-module id="bluetooth-device-dialog"> 14 <dom-module id="bluetooth-device-dialog">
15 <template> 15 <template>
16 <style include="settings-shared"> 16 <style include="settings-shared">
17 #dialogMessage { 17 #dialogMessage {
18 margin-bottom: 10px; 18 margin-bottom: 10px;
19 } 19 }
20 20
21 #pairing { 21 #pairing {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 /* .confirm indicates a confirmation passkey. */ 71 /* .confirm indicates a confirmation passkey. */
72 span.confirm { 72 span.confirm {
73 color: #999; 73 color: #999;
74 font-size: 20px; 74 font-size: 20px;
75 font-weight: 600; /* semibold */ 75 font-weight: 600; /* semibold */
76 margin: 0 20px; 76 margin: 0 20px;
77 } 77 }
78 </style> 78 </style>
79 <settings-dialog id="dialog" class="layout vertical" 79 <cr-dialog id="dialog" class="layout vertical"
80 on-iron-overlay-canceled="onIronOverlayCanceled_" 80 on-iron-overlay-canceled="onIronOverlayCanceled_"
81 on-iron-overlay-closed="onIronOverlayClosed_"> 81 on-iron-overlay-closed="onIronOverlayClosed_">
82 <div class="title">[[getTitle_(dialogType)]]</div> 82 <div class="title">[[getTitle_(dialogType)]]</div>
83 <div class="body"> 83 <div class="body">
84 <template is="dom-if" if="[[isDialogType_(dialogType, 'addDevice')]]"> 84 <template is="dom-if" if="[[isDialogType_(dialogType, 'addDevice')]]">
85 <div id="dialogDeviceList" class="layout vertical" 85 <div id="dialogDeviceList" class="layout vertical"
86 on-device-event="onDeviceEvent_"> 86 on-device-event="onDeviceEvent_">
87 <span class="no-devices" hidden$="[[haveDevices_(deviceList)]]"> 87 <span class="no-devices" hidden$="[[haveDevices_(deviceList)]]">
88 $i18n{bluetoothNoDevices} 88 $i18n{bluetoothNoDevices}
89 </span> 89 </span>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 <paper-button hidden$="[[!showConnect_(pairingEvent)]]" 144 <paper-button hidden$="[[!showConnect_(pairingEvent)]]"
145 on-tap="onConnectTap_">$i18n{bluetoothConnect}</paper-button> 145 on-tap="onConnectTap_">$i18n{bluetoothConnect}</paper-button>
146 <paper-button hidden$="[[!showDismiss_(pairingDevice, pairingEvent)]]" 146 <paper-button hidden$="[[!showDismiss_(pairingDevice, pairingEvent)]]"
147 on-tap="onDismissTap_">$i18n{bluetoothDismiss}</paper-button> 147 on-tap="onDismissTap_">$i18n{bluetoothDismiss}</paper-button>
148 <paper-button hidden$="[[showDismiss_(pairingDevice, pairingEvent)]]" 148 <paper-button hidden$="[[showDismiss_(pairingDevice, pairingEvent)]]"
149 on-tap="onCancelTap_"> 149 on-tap="onCancelTap_">
150 $i18n{cancel} 150 $i18n{cancel}
151 </paper-button> 151 </paper-button>
152 </template> 152 </template>
153 </div> 153 </div>
154 </settings-dialog> 154 </cr-dialog>
155 </template> 155 </template>
156 <script src="/bluetooth_page/bluetooth_device_dialog.js"></script> 156 <script src="/bluetooth_page/bluetooth_device_dialog.js"></script>
157 </dom-module> 157 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698