| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_scrollable_behavior.h
tml"> | 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"> | 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.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"> | 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"> | 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-spinner/paper-spi
nner.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.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"> | 8 <link rel="import" href="../icons.html"> |
| 9 <link rel="import" href="../settings_shared_css.html"> | 9 <link rel="import" href="../settings_shared_css.html"> |
| 10 <link rel="import" href="bluetooth_device_dialog.html"> | 10 <link rel="import" href="bluetooth_device_dialog.html"> |
| 11 <link rel="import" href="bluetooth_device_list_item.html"> | 11 <link rel="import" href="bluetooth_device_list_item.html"> |
| 12 | 12 |
| 13 <dom-module id="settings-bluetooth-subpage"> | 13 <dom-module id="settings-bluetooth-subpage"> |
| 14 <template> | 14 <template> |
| 15 <style include="settings-shared"> | 15 <style include="settings-shared"> |
| 16 .container { | 16 .container { |
| 17 @apply(--settings-list-frame-padding); | 17 @apply(--settings-list-frame-padding); |
| 18 min-height: 10px; | 18 min-height: 10px; |
| 19 overflow-y: auto; | 19 overflow-y: auto; |
| 20 } | 20 } |
| 21 | 21 |
| 22 .header { | 22 .header { |
| 23 margin-top: 10px; | 23 margin-top: 10px; |
| 24 } | 24 } |
| 25 | 25 |
| 26 paper-spinner { | 26 paper-spinner { |
| 27 @apply(--cr-icon-height-width); | 27 @apply(--cr-icon-height-width); |
| 28 } | 28 } |
| 29 |
| 30 #onoff[on] { |
| 31 color: var(--settings-toggle-color); |
| 32 } |
| 29 </style> | 33 </style> |
| 30 | 34 |
| 31 <div class="settings-box first"> | 35 <div class="settings-box first"> |
| 32 <div class="start">[[getOffOnString_(bluetoothEnabled)]]</div> | 36 <div id="onoff" class="start" on$="[[bluetoothEnabled]]"> |
| 37 [[getOnOffString_(bluetoothEnabled, |
| 38 '$i18nPolymer{deviceOn}', '$i18nPolymer{deviceOff}')]] |
| 39 </div> |
| 33 <paper-toggle-button id="enableBluetooth" checked="{{bluetoothEnabled}}" | 40 <paper-toggle-button id="enableBluetooth" checked="{{bluetoothEnabled}}" |
| 34 aria-label="$i18n{bluetoothToggleA11yLabel}"> | 41 aria-label="$i18n{bluetoothToggleA11yLabel}"> |
| 35 </paper-toggle-button> | 42 </paper-toggle-button> |
| 36 </div> | 43 </div> |
| 37 | 44 |
| 38 <!-- Paired device list --> | 45 <!-- Paired device list --> |
| 39 <div class="settings-box first header" hidden$="[[!bluetoothEnabled]]"> | 46 <div class="settings-box first header" hidden$="[[!bluetoothEnabled]]"> |
| 40 <div class="start">$i18n{bluetoothDeviceListPaired}</div> | 47 <div class="start">$i18n{bluetoothDeviceListPaired}</div> |
| 41 </div> | 48 </div> |
| 42 <div id="noPairedDevices" class="list-frame" | 49 <div id="noPairedDevices" class="list-frame" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 dialog-id="[[dialogId_]]" | 95 dialog-id="[[dialogId_]]" |
| 89 error-message="[[errorMessage_]]" | 96 error-message="[[errorMessage_]]" |
| 90 on-close="onDialogClosed_" | 97 on-close="onDialogClosed_" |
| 91 on-device-event="onDeviceEvent_" | 98 on-device-event="onDeviceEvent_" |
| 92 pairing-device="[[pairingDevice_]]"> | 99 pairing-device="[[pairingDevice_]]"> |
| 93 </bluetooth-device-dialog> | 100 </bluetooth-device-dialog> |
| 94 | 101 |
| 95 </template> | 102 </template> |
| 96 <script src="bluetooth_subpage.js"></script> | 103 <script src="bluetooth_subpage.js"></script> |
| 97 </dom-module> | 104 </dom-module> |
| OLD | NEW |