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

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

Issue 1976733002: MD Settings: combine title and ways of closing Bluetooth device dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/cr.html"> 1 <link rel="import" href="chrome://resources/html/cr.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/iron-flex-layout/classe s/iron-flex-layout.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-selector/iron-sele ctor.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/paper-button/paper-butt on.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-icon-button/paper -icon-button.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-input/paper-input .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-spinner/paper-spi nner.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi nner.html">
9 <link rel="import" href="chrome://md-settings/bluetooth_page/bluetooth_device_li st_item.html"> 9 <link rel="import" href="chrome://md-settings/bluetooth_page/bluetooth_device_li st_item.html">
10 <link rel="import" href="chrome://md-settings/icons.html"> 10 <link rel="import" href="chrome://md-settings/icons.html">
11 <link rel="import" href="chrome://md-settings/settings_dialog.html"> 11 <link rel="import" href="chrome://md-settings/settings_dialog.html">
12 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> 12 <link rel="import" href="chrome://md-settings/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 #dialogOuterDiv {
18 margin-bottom: 16px;
19 }
20
21 #dialogHeaderDiv {
22 height: 40px;
23 margin: 0 5px 10px;
24 }
25
26 #dialogFooterDiv { 17 #dialogFooterDiv {
27 height: 40px; 18 height: 40px;
28 margin: 0 20px; 19 margin: 0 20px;
29 } 20 }
30 21
31 #dialogMessage { 22 #dialogMessage {
32 margin-bottom: 10px; 23 margin-bottom: 10px;
33 } 24 }
34 25
35 #dialogTitle {
36 font-size: 125%;
37 margin: 0 10px;
38 }
39
40 #dialogDeviceList { 26 #dialogDeviceList {
41 -webkit-margin-start: 4px; 27 -webkit-margin-start: 4px;
42 height: 210px; 28 height: 210px;
43 margin-bottom: 20px; 29 margin-bottom: 20px;
44 overflow-y: auto; 30 overflow-y: auto;
45 } 31 }
46 32
47 #pairing { 33 #pairing {
48 margin-bottom: 10px; 34 margin-bottom: 10px;
49 } 35 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 81 }
96 82
97 /* .confirm indicates a confirmation passkey. */ 83 /* .confirm indicates a confirmation passkey. */
98 span.confirm { 84 span.confirm {
99 color: #999; 85 color: #999;
100 font-size: 20px; 86 font-size: 20px;
101 font-weight: 600; /* semibold */ 87 font-weight: 600; /* semibold */
102 margin: 0 20px; 88 margin: 0 20px;
103 } 89 }
104 </style> 90 </style>
105 <settings-dialog id="dialog" class="layout vertical"> 91 <settings-dialog id="dialog" class="layout vertical"
106 <!-- TODO(dbeam): use .title instead. --> 92 on-iron-overlay-canceled="onIronOverlayCanceled_"
93 on-iron-overlay-closed="onIronOverlayClosed_">
94 <div class="title">[[getTitle_(dialogType)]]</div>
107 <div class="body"> 95 <div class="body">
108 <template is="dom-if" if="[[isDialogType_(dialogType, 'addDevice')]]"> 96 <template is="dom-if" if="[[isDialogType_(dialogType, 'addDevice')]]">
109 <div id="dialogHeaderDiv" class="settings-box layout horizontal">
110 <span id="dialogTitle" class="flex">
111 $i18n{bluetoothAddDevicePageTitle}
112 </span>
113 <paper-icon-button icon="close" on-tap="onAddCancelTap_"
114 id="closeAdd">
115 </paper-icon-button>
116 </div>
117 <div class="settings-box flex"> 97 <div class="settings-box flex">
118 <div id="dialogDeviceList" class="settings-box layout vertical" 98 <div id="dialogDeviceList" class="settings-box layout vertical"
119 on-device-event="onDeviceEvent_"> 99 on-device-event="onDeviceEvent_">
120 <span class="no-devices" hidden$="[[haveDevices_(deviceList)]]"> 100 <span class="no-devices" hidden$="[[haveDevices_(deviceList)]]">
121 $i18n{bluetoothNoDevices} 101 $i18n{bluetoothNoDevices}
122 </span> 102 </span>
123 <iron-selector class="flex"> 103 <iron-selector class="flex">
124 <template is="dom-repeat" items="[[deviceList]]" 104 <template is="dom-repeat" items="[[deviceList]]"
125 filter="deviceNotPaired_" observe="paired"> 105 filter="deviceNotPaired_" observe="paired">
126 <bluetooth-device-list-item device="[[item]]"> 106 <bluetooth-device-list-item device="[[item]]">
127 </bluetooth-device-list-item> 107 </bluetooth-device-list-item>
128 </template> 108 </template>
129 </iron-selector> 109 </iron-selector>
130 </div> 110 </div>
131 </div> 111 </div>
132 </template> 112 </template>
133 <template is="dom-if" if="[[isDialogType_(dialogType, 'pairDevice')]]"> 113 <template is="dom-if" if="[[isDialogType_(dialogType, 'pairDevice')]]">
134 <div id="dialogHeaderDiv"
135 class="settings-box layout horizontal center">
136 <span id="dialogTitle" class="flex">
137 $i18n{bluetoothPairDevicePageTitle}
138 </span>
139 <paper-icon-button icon="close" on-tap="onPairCancelTap_"
140 id="closePair">
141 </paper-icon-button>
142 </div>
143 <div id="pairing" class="settings-blox layout vertical center 114 <div id="pairing" class="settings-blox layout vertical center
144 center-justified flex"> 115 center-justified flex">
145 <div id="dialogMessage"> 116 <div id="dialogMessage">
146 [[getMessage_(pairingDevice, pairingEvent)]] 117 [[getMessage_(pairingDevice, pairingEvent)]]
147 </div> 118 </div>
148 <div hidden$="[[!showEnterPincode_(pairingEvent)]]"> 119 <div hidden$="[[!showEnterPincode_(pairingEvent)]]">
149 <paper-input id="pincode" minlength="1" maxlength="16" 120 <paper-input id="pincode" minlength="1" maxlength="16"
150 type="text"> 121 type="text">
151 </div> 122 </div>
152 <div hidden$="[[!showEnterPasskey_(pairingEvent)]]"> 123 <div hidden$="[[!showEnterPasskey_(pairingEvent)]]">
(...skipping 15 matching lines...) Expand all
168 </template> 139 </template>
169 </div> 140 </div>
170 <div class="button-container"> 141 <div class="button-container">
171 <template is="dom-if" if="[[isDialogType_(dialogType, 'addDevice')]]"> 142 <template is="dom-if" if="[[isDialogType_(dialogType, 'addDevice')]]">
172 <div id="scanning" class="layout horizontal center flex" 143 <div id="scanning" class="layout horizontal center flex"
173 hidden$="[[!adapterState.discovering]]"> 144 hidden$="[[!adapterState.discovering]]">
174 <paper-spinner active="[[adapterState.discovering]]"> 145 <paper-spinner active="[[adapterState.discovering]]">
175 </paper-spinner> 146 </paper-spinner>
176 <span>$i18n{bluetoothScanning}</span> 147 <span>$i18n{bluetoothScanning}</span>
177 </div> 148 </div>
178 <paper-button id="cancel" class="end-justified" 149 <paper-button class="end-justified" on-tap="onCancelTap_">
179 on-tap="onAddCancelTap_">
180 $i18n{cancel} 150 $i18n{cancel}
181 </paper-button> 151 </paper-button>
182 </template> 152 </template>
183 <template is="dom-if" if="[[isDialogType_(dialogType, 'pairDevice')]]"> 153 <template is="dom-if" if="[[isDialogType_(dialogType, 'pairDevice')]]">
184 <paper-button hidden$="[[!showAcceptReject_(pairingEvent)]]" 154 <paper-button hidden$="[[!showAcceptReject_(pairingEvent)]]"
185 on-tap="onAcceptTap_">$i18n{bluetoothAccept}</paper-button> 155 on-tap="onAcceptTap_">$i18n{bluetoothAccept}</paper-button>
186 <paper-button hidden$="[[!showAcceptReject_(pairingEvent)]]" 156 <paper-button hidden$="[[!showAcceptReject_(pairingEvent)]]"
187 on-tap="onRejectTap_">$i18n{bluetoothReject}</paper-button> 157 on-tap="onRejectTap_">$i18n{bluetoothReject}</paper-button>
188 <paper-button hidden$="[[!showConnect_(pairingEvent)]]" 158 <paper-button hidden$="[[!showConnect_(pairingEvent)]]"
189 on-tap="onConnectTap_">$i18n{bluetoothConnect}</paper-button> 159 on-tap="onConnectTap_">$i18n{bluetoothConnect}</paper-button>
190 <paper-button hidden$="[[!showDismiss_(pairingDevice, pairingEvent)]]" 160 <paper-button hidden$="[[!showDismiss_(pairingDevice, pairingEvent)]]"
191 on-tap="onDismissTap_">$i18n{bluetoothDismiss}</paper-button> 161 on-tap="onDismissTap_">$i18n{bluetoothDismiss}</paper-button>
192 <paper-button on-tap="onPairCancelTap_" 162 <paper-button hidden$="[[showDismiss_(pairingDevice, pairingEvent)]]"
193 hidden$="[[showDismiss_(pairingDevice, pairingEvent)]]"> 163 on-tap="onCancelTap_">
194 $i18n{cancel} 164 $i18n{cancel}
195 </paper-button> 165 </paper-button>
196 </template> 166 </template>
197 </div> 167 </div>
198 </settings-dialog> 168 </settings-dialog>
199 </template> 169 </template>
200 <script src="chrome://md-settings/bluetooth_page/bluetooth_device_dialog.js">< /script> 170 <script src="chrome://md-settings/bluetooth_page/bluetooth_device_dialog.js">< /script>
201 </dom-module> 171 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698