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="/controls/controlled_button.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"></style> |
11 </style> | |
12 <div class="settings-box first two-line"> | 11 <div class="settings-box first two-line"> |
13 <div class="start"> | 12 <div class="start"> |
14 <div>$i18n{downloadLocation}</div> | 13 <div>$i18n{downloadLocation}</div> |
15 <div class="secondary">[[prefs.download.default_directory.value]]</div> | 14 <div class="secondary">[[prefs.download.default_directory.value]]</div> |
16 </div> | 15 </div> |
17 <div class="secondary-action"> | 16 <div class="secondary-action"> |
18 <controlled-button class="secondary-button" id="changeDownloadsPath" | 17 <controlled-button class="secondary-button" id="changeDownloadsPath" |
19 on-tap="selectDownloadLocation_" | 18 on-tap="selectDownloadLocation_" |
20 pref="[[prefs.download.default_directory]]"> | 19 pref="[[prefs.download.default_directory]]"> |
21 $i18n{changeDownloadLocation} | 20 $i18n{changeDownloadLocation} |
22 </controlled-button> | 21 </controlled-button> |
23 </div> | 22 </div> |
24 </div> | 23 </div> |
25 <div class="settings-box block"> | 24 <div class="settings-box block"> |
26 <settings-checkbox pref="{{prefs.download.prompt_for_download}}" | 25 <settings-checkbox pref="{{prefs.download.prompt_for_download}}" |
27 label="$i18n{promptForDownload}"> | 26 label="$i18n{promptForDownload}"> |
28 </settings-checkbox> | 27 </settings-checkbox> |
29 <if expr="chromeos"> | 28 <if expr="chromeos"> |
30 <settings-checkbox pref="{{prefs.gdata.disabled}}" | 29 <settings-checkbox pref="{{prefs.gdata.disabled}}" |
31 label="$i18n{disconnectGoogleDriveAccount}" | 30 label="$i18n{disconnectGoogleDriveAccount}" |
32 hidden="[[!pageVisibility.googleDrive]]"> | 31 hidden="[[!pageVisibility.googleDrive]]"> |
33 </settings-checkbox> | 32 </settings-checkbox> |
34 </if> | 33 </if> |
35 </div> | 34 </div> |
36 </template> | 35 </template> |
37 <script src="downloads_page.js"></script> | 36 <script src="downloads_page.js"></script> |
38 </dom-module> | 37 </dom-module> |
OLD | NEW |