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

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

Issue 1954383002: MD Settings: combine bluetooth adding and pairing dialogs into one (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests 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
OLDNEW
(Empty)
1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <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/paper-button/paper-butt on.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-input/paper-input .html">
6 <link rel="import" href="chrome://md-settings/settings_shared_css.html">
7 <link rel="import" href="chrome://md-settings/bluetooth_page/bluetooth_dialog_sh ared_css.html">
8
9 <dom-module id="settings-bluetooth-pair-device-dialog">
10 <template>
11 <style include="settings-shared"></style>
12 <style include="bluetooth-dialog-shared"></style>
13 <div id="dialogOuterDiv" class="layout vertical flex">
14 <div id="dialogHeaderDiv" class="settings-box layout horizontal center">
15 <span id="dialogTitle" class="flex"
16 i18n-content="bluetoothPairDevicePageTitle">
17 </span>
18 <paper-icon-button icon="close" on-tap="onCancelTap_" id="close">
19 </paper-icon-button>
20 </div>
21 <div id="pairing"
22 class="settings-blox layout vertical center center-justified flex">
23 <div id="dialogMessage">
24 [[getMessage_(pairingDevice, pairingEvent)]]
25 </div>
26 <div hidden$="[[!showEnterPincode_(pairingEvent)]]">
27 <paper-input id="pincode" minlength="1" maxlength="16" type="text">
28 </div>
29 <div hidden$="[[!showEnterPasskey_(pairingEvent)]]">
30 <paper-input id="passkey" minlength="6" maxlength="6" type="text">
31 </div>
32 <div id="pinDiv" class="layout horizontal center center-justified"
33 hidden="[[!showDisplayPassOrPin_(pairingEvent)]]">
34 <template is="dom-repeat" items="[[digits]]">
35 <span class$="[[getPinClass_(pairingEvent, index)]]">
36 [[getPinDigit_(pairingEvent, index)]]
37 </span>
38 </template>
39 <span class$="[[getPinClass_(pairingEvent, -1)]]"
40 hidden="[[showAcceptReject_(pairingEvent)]]">
41 [[i18n('bluetoothEnterKey')]]
42 </span>
43 </div>
44 </div>
45 <div id="dialogFooterDiv" class="layout horizontal center end-justified">
46 <paper-button i18n-content="bluetoothAccept"
47 hidden$="[[!showAcceptReject_(pairingEvent)]]"
48 on-tap="onAcceptTap_">
49 </paper-button>
50 <paper-button i18n-content="bluetoothReject"
51 hidden$="[[!showAcceptReject_(pairingEvent)]]"
52 on-tap="onRejectTap_">
53 </paper-button>
54 <paper-button i18n-content="bluetoothConnect"
55 hidden$="[[!showConnect_(pairingEvent)]]"
56 on-tap="onConnectTap_">
57 </paper-button>
58 <paper-button i18n-content="bluetoothDismiss"
59 hidden$="[[!showDismiss_(pairingDevice, pairingEvent)]]"
60 on-tap="onDismissTap_">
61 </paper-button>
62 <paper-button i18n-content="cancel" on-tap="onCancelTap_"
63 hidden$="[[showDismiss_(pairingDevice, pairingEvent)]]">
64 </paper-button>
65 </div>
66 </div>
67 </template>
68 <script src="bluetooth_pair_device_dialog.js"></script>
69 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698