| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 3 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> | 3 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> |
| 4 <link rel="import" href="chrome://md-settings/prefs/prefs.html"> | 4 <link rel="import" href="chrome://md-settings/prefs/prefs.html"> |
| 5 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> | 5 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> |
| 6 <link rel="import" href="chrome://md-settings/system_page/system_page_browser_pr
oxy.html"> | 6 <link rel="import" href="chrome://md-settings/system_page/system_page_browser_pr
oxy.html"> |
| 7 | 7 |
| 8 <dom-module id="settings-system-page"> | 8 <dom-module id="settings-system-page"> |
| 9 <template> | 9 <template> |
| 10 <style include="settings-shared"> | 10 <style include="settings-shared"> |
| 11 /* TODO(dbeam): is it worth generalizing this style? Does something like | 11 /* TODO(dbeam): is it worth generalizing this style? Does something like |
| 12 * this already exist (buttons after a checkbox in the same row)? */ | 12 * this already exist (buttons after a checkbox in the same row)? */ |
| 13 #hardware-acceleration { | 13 #hardware-acceleration { |
| 14 align-items: center; | 14 align-items: center; |
| 15 display: flex; | 15 display: flex; |
| 16 } | 16 } |
| 17 | 17 |
| 18 #hardware-acceleration settings-checkbox { | 18 #hardware-acceleration settings-checkbox { |
| 19 flex: 1; | 19 flex: 1; |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <div class="settings-box block first"> | 22 <div class="settings-box block first"> |
| 23 <if expr="not is_macosx"> | 23 <if expr="not is_macosx"> |
| 24 <settings-checkbox i18n-values="label:backgroundAppsLabel" | 24 <settings-checkbox label="$i18n{backgroundAppsLabel}" |
| 25 pref="{{prefs.background_mode.enabled}}"> | 25 pref="{{prefs.background_mode.enabled}}"> |
| 26 </settings-checkbox> | 26 </settings-checkbox> |
| 27 </if> | 27 </if> |
| 28 <div id="hardware-acceleration"> | 28 <div id="hardware-acceleration"> |
| 29 <settings-checkbox i18n-values="label:hardwareAccelerationLabel" | 29 <settings-checkbox label="$i18n{hardwareAccelerationLabel}" |
| 30 pref="{{prefs.hardware_acceleration_mode.enabled}}"> | 30 pref="{{prefs.hardware_acceleration_mode.enabled}}"> |
| 31 </settings-checkbox> | 31 </settings-checkbox> |
| 32 <template is="dom-if" if="[[shouldShowRestart_(prefs.hardware_accelerati
on_mode.enabled.value)]]"> | 32 <template is="dom-if" if="[[shouldShowRestart_( |
| 33 prefs.hardware_acceleration_mode.enabled.value)]]"> |
| 33 <paper-button on-tap="onRestartTap_">$i18n{restart}</paper-button> | 34 <paper-button on-tap="onRestartTap_">$i18n{restart}</paper-button> |
| 34 </template> | 35 </template> |
| 35 </div> | 36 </div> |
| 36 </div> | 37 </div> |
| 37 <div class="settings-box"> | 38 <div class="settings-box"> |
| 38 <div class="button-strip"> | 39 <div class="button-strip"> |
| 39 <paper-button class="primary-button" on-tap="onChangeProxySettingsTap_"> | 40 <paper-button class="primary-button" on-tap="onChangeProxySettingsTap_"> |
| 40 $i18n{changeProxySettings} | 41 $i18n{changeProxySettings} |
| 41 </paper-button> | 42 </paper-button> |
| 42 </div> | 43 </div> |
| 43 </div> | 44 </div> |
| 44 </template> | 45 </template> |
| 45 <script src="chrome://md-settings/system_page/system_page.js"></script> | 46 <script src="chrome://md-settings/system_page/system_page.js"></script> |
| 46 </dom-module> | 47 </dom-module> |
| OLD | NEW |