| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.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/iron-icons/device-icons
.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/device-icons
.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/neon-animation/neon-ani
matable.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> |
| 6 <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-button/paper-butt
on.html"> |
| 7 <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-icon-button/paper
-icon-button.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
| 9 <link rel="import" href="chrome://resources/cr_elements/cr_collapse/cr_collapse.
html"> | 9 <link rel="import" href="chrome://resources/cr_elements/cr_collapse/cr_collapse.
html"> |
| 10 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 10 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 11 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa
ges.html"> | 11 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa
ges.html"> |
| 12 | 12 |
| 13 <dom-module id="settings-bluetooth-page"> | 13 <dom-module id="settings-bluetooth-page"> |
| 14 <link rel="import" type="css" href="chrome://md-settings/settings_shared.css"> | 14 <link rel="import" type="css" href="chrome://md-settings/settings_shared.css"> |
| 15 <link rel="import" type="css" href="bluetooth_page.css"> | 15 <link rel="import" type="css" href="bluetooth_page.css"> |
| 16 <template> | 16 <template> |
| 17 <settings-animated-pages id="pages" current-route="{{currentRoute}}" | 17 <settings-animated-pages id="pages" current-route="{{currentRoute}}" |
| 18 section="bluetooth"> | 18 section="bluetooth"> |
| 19 <neon-animatable id="main"> | 19 <neon-animatable id="main"> |
| 20 <div class="layout vertical"> | 20 <div class="layout vertical"> |
| 21 <div class="layout horizontal center"> | 21 <div class="layout horizontal center"> |
| 22 <iron-icon icon="device:bluetooth"></iron-icon> | 22 <iron-icon icon="device:bluetooth"></iron-icon> |
| 23 <span class="flex" i18n-content="bluetoothEnable"></span> | 23 <span class="flex" i18n-content="bluetoothEnable"></span> |
| 24 <paper-toggle-button checked="{{bluetoothEnabled}}" | 24 <paper-toggle-button id="enableBluetooth" |
| 25 checked="{{bluetoothEnabled}}" |
| 25 on-change="onBluetoothEnabledChange_"> | 26 on-change="onBluetoothEnabledChange_"> |
| 26 </paper-toggle-button> | 27 </paper-toggle-button> |
| 27 </div> | 28 </div> |
| 28 <cr-collapse opened="[[bluetoothEnabled]]"> | 29 <cr-collapse opened="[[bluetoothEnabled]]"> |
| 29 <div id="deviceList" class="layout vertical flex"> | 30 <div id="deviceList" class="layout vertical flex"> |
| 30 <span hidden$="[[haveDevices_(deviceList)]]" | 31 <span hidden$="[[haveDevices_(deviceList.splices)]]" |
| 31 i18n-content="bluetoothNoDevices"> | 32 i18n-content="bluetoothNoDevices"> |
| 32 </span> | 33 </span> |
| 33 <iron-selector selected="{{selectedDevice}}"> | 34 <iron-selector selected="{{selectedDevice}}"> |
| 34 <template is="dom-repeat" items="[[deviceList]]"> | 35 <template is="dom-repeat" items="[[deviceList]]"> |
| 35 <div class="device layout horizontal center" | 36 <div class="device layout horizontal center" |
| 36 hidden$="[[!showDeviceInList_(item)]]"> | 37 hidden$="[[!showDeviceInList_(item)]]"> |
| 37 <span class="name flex" | 38 <span class="name flex" |
| 38 connected$=[[item.connected]] | 39 connected$=[[item.connected]] |
| 39 connecting$=[[item.connecting]]> | 40 connecting$=[[item.connecting]]> |
| 40 [[getDeviceText_(item)]] | 41 [[getDeviceText_(item)]] |
| (...skipping 16 matching lines...) Expand all Loading... |
| 57 <paper-button id="addDevice" i18n-content="bluetoothAddDevice" | 58 <paper-button id="addDevice" i18n-content="bluetoothAddDevice" |
| 58 on-tap="onAddDeviceTap_"> | 59 on-tap="onAddDeviceTap_"> |
| 59 </paper-button> | 60 </paper-button> |
| 60 </div> | 61 </div> |
| 61 </div> | 62 </div> |
| 62 </neon-animatable> | 63 </neon-animatable> |
| 63 </settings-animated-pages> | 64 </settings-animated-pages> |
| 64 </template> | 65 </template> |
| 65 <script src="bluetooth_page.js"></script> | 66 <script src="bluetooth_page.js"></script> |
| 66 </dom-module> | 67 </dom-module> |
| OLD | NEW |