| 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/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/paper-button/paper-butt
on.html"> | 3 <link rel="import" href="/controls/controlled_button.html"> |
| 4 <link rel="import" href="/controls/settings_checkbox.html"> | 4 <link rel="import" href="/controls/settings_checkbox.html"> |
| 5 <link rel="import" href="/controls/settings_input.html"> | 5 <link rel="import" href="/controls/settings_input.html"> |
| 6 <link rel="import" href="/settings_shared_css.html"> | 6 <link rel="import" href="/settings_shared_css.html"> |
| 7 | 7 |
| 8 <dom-module id="settings-downloads-page"> | 8 <dom-module id="settings-downloads-page"> |
| 9 <template> | 9 <template> |
| 10 <style include="settings-shared"> | 10 <style include="settings-shared"> |
| 11 settings-input { | 11 settings-input { |
| 12 /* This ensures that the "Download location" label and the text in the | 12 /* This ensures that the "Download location" label and the text in the |
| 13 * input itself are vertically aligned. */ | 13 * input itself are vertically aligned. */ |
| 14 margin-bottom: 1em; | 14 margin-bottom: 1em; |
| 15 width: 300px; | 15 width: 300px; |
| 16 } | 16 } |
| 17 | 17 |
| 18 #locationLabel { | 18 #locationLabel { |
| 19 -webkit-margin-end: 10px; | 19 -webkit-margin-end: 10px; |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <div class="settings-box first two-line"> | 22 <div class="settings-box first two-line"> |
| 23 <div class="start"> | 23 <div class="start"> |
| 24 <div>$i18n{downloadLocation}</div> | 24 <div>$i18n{downloadLocation}</div> |
| 25 <div class="secondary">[[prefs.download.default_directory.value]]</div> | 25 <div class="secondary">[[prefs.download.default_directory.value]]</div> |
| 26 </div> | 26 </div> |
| 27 <div class="secondary-action"> | 27 <div class="secondary-action"> |
| 28 <paper-button class="secondary-button" id="changeDownloadsPath" | 28 <controlled-button class="secondary-button" id="changeDownloadsPath" |
| 29 on-tap="selectDownloadLocation_"> | 29 on-tap="selectDownloadLocation_" |
| 30 pref="[[prefs.download.default_directory]]"> |
| 30 $i18n{changeDownloadLocation} | 31 $i18n{changeDownloadLocation} |
| 31 </paper-button> | 32 </controlled-button> |
| 32 </div> | 33 </div> |
| 33 </div> | 34 </div> |
| 34 <div class="settings-box block"> | 35 <div class="settings-box block"> |
| 35 <settings-checkbox pref="{{prefs.download.prompt_for_download}}" | 36 <settings-checkbox pref="{{prefs.download.prompt_for_download}}" |
| 36 label="$i18n{promptForDownload}"> | 37 label="$i18n{promptForDownload}"> |
| 37 </settings-checkbox> | 38 </settings-checkbox> |
| 38 <if expr="chromeos"> | 39 <if expr="chromeos"> |
| 39 <settings-checkbox pref="{{prefs.gdata.disabled}}" | 40 <settings-checkbox pref="{{prefs.gdata.disabled}}" |
| 40 label="$i18n{disconnectGoogleDriveAccount}"> | 41 label="$i18n{disconnectGoogleDriveAccount}"> |
| 41 </settings-checkbox> | 42 </settings-checkbox> |
| 42 </if> | 43 </if> |
| 43 </div> | 44 </div> |
| 44 </template> | 45 </template> |
| 45 <script src="downloads_page.js"></script> | 46 <script src="downloads_page.js"></script> |
| 46 </dom-module> | 47 </dom-module> |
| OLD | NEW |