| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 2 <link rel="import" href="chrome://resources/html/md_select_css.html"> | |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani
matable.html"> | 4 <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-icon-button/paper
-icon-button-light.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button-light.html"> |
| 7 <link rel="import" href="device_page_browser_proxy.html"> | 6 <link rel="import" href="device_page_browser_proxy.html"> |
| 8 <link rel="import" href="display.html"> | 7 <link rel="import" href="display.html"> |
| 9 <link rel="import" href="keyboard.html"> | 8 <link rel="import" href="keyboard.html"> |
| 10 <link rel="import" href="pointers.html"> | 9 <link rel="import" href="pointers.html"> |
| 10 <link rel="import" href="power.html"> |
| 11 <link rel="import" href="storage.html"> | 11 <link rel="import" href="storage.html"> |
| 12 <link rel="import" href="stylus.html"> | 12 <link rel="import" href="stylus.html"> |
| 13 <link rel="import" href="../prefs/prefs.html"> | 13 <link rel="import" href="../prefs/prefs.html"> |
| 14 <link rel="import" href="../route.html"> | 14 <link rel="import" href="../route.html"> |
| 15 <link rel="import" href="../settings_page/settings_animated_pages.html"> | 15 <link rel="import" href="../settings_page/settings_animated_pages.html"> |
| 16 <link rel="import" href="../settings_page/settings_subpage.html"> | 16 <link rel="import" href="../settings_page/settings_subpage.html"> |
| 17 <link rel="import" href="../settings_shared_css.html"> | 17 <link rel="import" href="../settings_shared_css.html"> |
| 18 | 18 |
| 19 <dom-module id="settings-device-page"> | 19 <dom-module id="settings-device-page"> |
| 20 <template> | 20 <template> |
| 21 <style include="settings-shared md-select"></style> | 21 <style include="settings-shared"></style> |
| 22 <settings-animated-pages id="pages" section="device"> | 22 <settings-animated-pages id="pages" section="device"> |
| 23 <neon-animatable id="main" route-path="default"> | 23 <neon-animatable id="main" route-path="default"> |
| 24 <div id="pointersRow" class="settings-box first" | 24 <div id="pointersRow" class="settings-box first" |
| 25 on-tap="onPointersTap_" actionable> | 25 on-tap="onPointersTap_" actionable> |
| 26 <div class="start"> | 26 <div class="start"> |
| 27 [[getPointersTitle_(hasMouse_, hasTouchpad_)]] | 27 [[getPointersTitle_(hasMouse_, hasTouchpad_)]] |
| 28 </div> | 28 </div> |
| 29 <button class="subpage-arrow" is="paper-icon-button-light" | 29 <button class="subpage-arrow" is="paper-icon-button-light" |
| 30 aria-label$="[[getPointersTitle_(hasMouse_, | 30 aria-label$="[[getPointersTitle_(hasMouse_, |
| 31 hasTouchpad_)]]"></button> | 31 hasTouchpad_)]]"></button> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 50 <button class="subpage-arrow" is="paper-icon-button-light" | 50 <button class="subpage-arrow" is="paper-icon-button-light" |
| 51 aria-label="$i18n{displayTitle}"></button> | 51 aria-label="$i18n{displayTitle}"></button> |
| 52 </div> | 52 </div> |
| 53 <div id="storageRow" class="settings-box" on-tap="onStorageTap_" | 53 <div id="storageRow" class="settings-box" on-tap="onStorageTap_" |
| 54 actionable> | 54 actionable> |
| 55 <div class="start">$i18n{storageTitle}</div> | 55 <div class="start">$i18n{storageTitle}</div> |
| 56 <button class="subpage-arrow" is="paper-icon-button-light" | 56 <button class="subpage-arrow" is="paper-icon-button-light" |
| 57 aria-label="$i18n{storageTitle}"></button> | 57 aria-label="$i18n{storageTitle}"></button> |
| 58 </div> | 58 </div> |
| 59 <template is="dom-if" if="[[enablePowerSettings_]]"> | 59 <template is="dom-if" if="[[enablePowerSettings_]]"> |
| 60 <div id="powerRow" class="settings-box two-line"> | 60 <div id="powerRow" class="settings-box" on-tap="onPowerTap_" |
| 61 <div class="start"> | 61 actionable> |
| 62 <div>[[powerLabel_]]</div> | 62 <div class="start">$i18n{powerTitle}</div> |
| 63 <div class="secondary">[[batteryStatus_.statusText]]</div> | 63 <button class="subpage-arrow" is="paper-icon-button-light" |
| 64 </div> | 64 arial-label="$i18n{powerTitle}"></button> |
| 65 <div class="md-select-wrapper" | |
| 66 hidden$="[[!showPowerDropdown_]]"> | |
| 67 <select id="powerSource" class="md-select" | |
| 68 on-change="onPowerSourceChange_"> | |
| 69 <option value="" | |
| 70 selected$="[[isEqual_('', selectedPowerSourceId_)]]"> | |
| 71 $i18n{powerSourceBattery} | |
| 72 </option> | |
| 73 <template is="dom-repeat" items="[[powerSources_]]"> | |
| 74 <option value="[[item.id]]" | |
| 75 selected$="[[isEqual_(item.id, selectedPowerSourceId_)]]"> | |
| 76 [[item.description]] | |
| 77 </option> | |
| 78 </template> | |
| 79 </select> | |
| 80 <span class="md-select-underline"></span> | |
| 81 </div> | |
| 82 <div hidden$="[[showPowerDropdown_]]"> | |
| 83 [[powerSourceName_]] | |
| 84 </div> | |
| 85 </div> | 65 </div> |
| 86 </template> | 66 </template> |
| 87 </neon-animatable> | 67 </neon-animatable> |
| 88 <template is="dom-if" route-path="/pointer-overlay"> | 68 <template is="dom-if" route-path="/pointer-overlay"> |
| 89 <settings-subpage | 69 <settings-subpage |
| 90 associated-control="[[$$('#pointersRow')]]" | 70 associated-control="[[$$('#pointersRow')]]" |
| 91 page-title="[[getPointersTitle_(hasMouse_, hasTouchpad_)]]"> | 71 page-title="[[getPointersTitle_(hasMouse_, hasTouchpad_)]]"> |
| 92 <settings-pointers prefs="{{prefs}}" | 72 <settings-pointers prefs="{{prefs}}" |
| 93 has-mouse="[[hasMouse_]]" has-touchpad="[[hasTouchpad_]]"> | 73 has-mouse="[[hasMouse_]]" has-touchpad="[[hasTouchpad_]]"> |
| 94 </settings-pointers> | 74 </settings-pointers> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 115 <settings-display></settings-display> | 95 <settings-display></settings-display> |
| 116 </settings-subpage> | 96 </settings-subpage> |
| 117 </template> | 97 </template> |
| 118 <template is="dom-if" route-path="/storage"> | 98 <template is="dom-if" route-path="/storage"> |
| 119 <settings-subpage | 99 <settings-subpage |
| 120 associated-control="[[$$('#storageRow')]]" | 100 associated-control="[[$$('#storageRow')]]" |
| 121 page-title="$i18n{storageTitle}"> | 101 page-title="$i18n{storageTitle}"> |
| 122 <settings-storage></settings-storage> | 102 <settings-storage></settings-storage> |
| 123 </settings-subpage> | 103 </settings-subpage> |
| 124 </template> | 104 </template> |
| 105 <template is="dom-if" route-path="/power"> |
| 106 <settings-subpage |
| 107 associated-control="[[$$('#powerRow')]]" |
| 108 no-search$="[[!enablePowerSettings_]]" |
| 109 page-title="$i18n{powerTitle}"> |
| 110 <settings-power enable-power-settings="[[enablePowerSettings_]]"> |
| 111 </settings-power> |
| 112 </settings-subpage> |
| 113 </template> |
| 125 </settings-animated-pages> | 114 </settings-animated-pages> |
| 126 </template> | 115 </template> |
| 127 <script src="device_page.js"></script> | 116 <script src="device_page.js"></script> |
| 128 </dom-module> | 117 </dom-module> |
| OLD | NEW |