summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/settings/bluetooth_page/bluetooth_pair_device_dialog.html
blob: 2705f4e119a9c7379ceba94abbd085e6f7189cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
<link rel="import" href="chrome://md-settings/settings_shared_css.html">

<dom-module id="settings-bluetooth-pair-device-dialog">
  <link rel="import" type="css" href="bluetooth_page.css">
  <link rel="import" type="css" href="bluetooth_dialog.css">
  <template>
    <style include="settings-shared"></style>
    <div id="dialogOuterDiv" class="layout vertical flex">
      <div id="dialogHeaderDiv" class="settings-box layout horizontal center">
        <span id="dialogTitle" class="flex"
            i18n-content="bluetoothPairDevicePageTitle">
        </span>
        <paper-icon-button icon="close" on-tap="onCancelTap_" id="close">
        </paper-icon-button>
      </div>
      <div id="pairing"
          class="settings-blox layout vertical center center-justified flex">
        <div id="dialogMessage">
          [[getMessage_(pairingDevice, pairingEvent)]]
        </div>
        <div hidden$="[[!showEnterPincode_(pairingEvent)]]">
          <paper-input id="pincode" minlength="1" maxlength="16" type="text">
        </div>
        <div hidden$="[[!showEnterPasskey_(pairingEvent)]]">
          <paper-input id="passkey" minlength="6" maxlength="6" type="text">
        </div>
        <div id="pinDiv" class="layout horizontal center center-justified"
            hidden="[[!showDisplayPassOrPin_(pairingEvent)]]">
          <template is="dom-repeat" items="[[digits]]">
            <span class$="[[getPinClass_(pairingEvent, index)]]">
                [[getPinDigit_(pairingEvent, index)]]
            </span>
          </template>
          <span class$="[[getPinClass_(pairingEvent, -1)]]"
              hidden="[[showAcceptReject_(pairingEvent)]]">
              [[i18n('bluetoothEnterKey')]]
          </span>
        </div>
      </div>
      <div id="dialogFooterDiv" class="layout horizontal center end-justified">
        <paper-button i18n-content="bluetoothAccept"
            hidden$="[[!showAcceptReject_(pairingEvent)]]"
            on-tap="onAcceptTap_">
        </paper-button>
        <paper-button i18n-content="bluetoothReject"
            hidden$="[[!showAcceptReject_(pairingEvent)]]"
            on-tap="onRejectTap_">
        </paper-button>
        <paper-button i18n-content="bluetoothConnect"
            hidden$="[[!showConnect_(pairingEvent)]]"
            on-tap="onConnectTap_">
        </paper-button>
        <paper-button i18n-content="bluetoothDismiss"
            hidden$="[[!showDismiss_(pairingDevice, pairingEvent)]]"
            on-tap="onDismissTap_">
        </paper-button>
        <paper-button i18n-content="cancel" on-tap="onCancelTap_"
            hidden$="[[showDismiss_(pairingDevice, pairingEvent)]]">
        </paper-button>
      </div>
    </div>
  </template>
  <script src="bluetooth_pair_device_dialog.js"></script>
</dom-module>