| OLD | NEW |
| (Empty) | |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h
tml"> |
| 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
| 8 <link rel="import" href="/icons.html"> |
| 9 <link rel="import" href="/settings_shared_css.html"> |
| 10 <link rel="import" href="bluetooth_device_dialog.html"> |
| 11 <link rel="import" href="bluetooth_device_list_item.html"> |
| 12 |
| 13 <dom-module id="settings-bluetooth-subpage"> |
| 14 <template> |
| 15 <style include="settings-shared"> |
| 16 #container { |
| 17 @apply(--settings-list-frame-padding); |
| 18 min-height: 100px; |
| 19 overflow-y: auto; |
| 20 } |
| 21 |
| 22 #pairButton { |
| 23 margin: 0 |
| 24 } |
| 25 |
| 26 #topRow { |
| 27 margin-bottom: 10px; |
| 28 } |
| 29 </style> |
| 30 |
| 31 <div id="topRow" class="settings-box first"> |
| 32 <div class="start">[[getOffOnString_(bluetoothEnabled)]]</div> |
| 33 <paper-button id="pairButton" class="primary-button" |
| 34 on-tap="onAddDeviceTap_" hidden="[[!bluetoothEnabled]]"> |
| 35 $i18n{bluetoothPairDevice} |
| 36 </paper-button> |
| 37 <paper-toggle-button id="enableBluetooth" checked="{{bluetoothEnabled}}"> |
| 38 </paper-toggle-button> |
| 39 </div> |
| 40 |
| 41 <div id="container" class="layout vertical" |
| 42 scrollable on-device-event="onDeviceEvent_" |
| 43 hidden="[[!showDevices_(bluetoothEnabled, pairedDeviceList_)]]"> |
| 44 <iron-list id="devices" class="vertical-list" |
| 45 items="[[pairedDeviceList_]]" |
| 46 selection-enabled selected-item="{{selectedItem_}}" |
| 47 scroll-target="container"> |
| 48 <template> |
| 49 <bluetooth-device-list-item device="[[item]]" |
| 50 tabindex$="[[tabIndex]]"> |
| 51 </bluetooth-device-list-item> |
| 52 </template> |
| 53 </iron-list> |
| 54 </div> |
| 55 <div id="noDevices" class="settings-box continuation" |
| 56 hidden$="[[!showNoDevices_(bluetoothEnabled, pairedDeviceList_)]]"> |
| 57 $i18n{bluetoothNoDevices} |
| 58 </div> |
| 59 |
| 60 <bluetooth-device-dialog id="deviceDialog" |
| 61 adapter-state="[[adapterState]]" |
| 62 bluetooth-private="[[bluetoothPrivate]]" |
| 63 device-list="[[deviceList_]]" |
| 64 dialog-id="[[dialogId_]]" |
| 65 error-message="[[errorMessage_]]" |
| 66 on-close="onDialogClosed_" |
| 67 on-device-event="onDeviceEvent_" |
| 68 pairing-device="[[pairingDevice_]]"> |
| 69 </bluetooth-device-dialog> |
| 70 |
| 71 </template> |
| 72 <script src="bluetooth_subpage.js"></script> |
| 73 </dom-module> |
| OLD | NEW |