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/paper-input/paper-input
.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-ma
terial.html"> | |
5 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button
.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button
.html"> |
6 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_input/cr_input.h
tml"> | 5 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_input/cr_input.h
tml"> |
7 <link rel="import" href="chrome://md-settings/checkbox/checkbox.html"> | 6 <link rel="import" href="chrome://md-settings/checkbox/checkbox.html"> |
| 7 <link rel="import" href="chrome://md-settings/settings_page/settings_section.htm
l"> |
8 | 8 |
9 <dom-module id="cr-settings-downloads-page"> | 9 <dom-module id="cr-settings-downloads-page"> |
10 <link rel="import" type="css" href="chrome://md-settings/settings_page/setting
s_page.css"> | |
11 <link rel="import" type="css" href="downloads_page.css"> | 10 <link rel="import" type="css" href="downloads_page.css"> |
12 <template> | 11 <template> |
13 <paper-material> | 12 <cr-settings-section page-title="[[pageTitle]]" icon="[[icon]]"> |
14 <div class="horizontal layout center"> | 13 <div class="horizontal layout center"> |
15 <div class="layout horizontal center"> | 14 <div class="layout horizontal center"> |
16 <div id="locationLabel" i18n-content="downloadLocation"></div> | 15 <div id="locationLabel" i18n-content="downloadLocation"></div> |
17 <cr-input id="downloadsPath" floating-label="false" | 16 <cr-input id="downloadsPath" floating-label="false" |
18 value="{{prefs.download.default_directory.value}}" | 17 value="{{prefs.download.default_directory.value}}" |
19 readonly aria-labelledby="locationLabel"> | 18 readonly aria-labelledby="locationLabel"> |
20 </cr-input> | 19 </cr-input> |
21 </div> | 20 </div> |
22 <cr-button id="changeDownloadsPath" on-click="selectDownloadLocation_" | 21 <cr-button id="changeDownloadsPath" on-click="selectDownloadLocation_" |
23 i18n-content="changeDownloadLocation"> | 22 i18n-content="changeDownloadLocation"> |
24 </cr-button> | 23 </cr-button> |
25 </div> | 24 </div> |
26 <cr-settings-checkbox pref="{{prefs.download.prompt_for_download}}" | 25 <cr-settings-checkbox pref="{{prefs.download.prompt_for_download}}" |
27 i18n-values="label:promptForDownload"> | 26 i18n-values="label:promptForDownload"> |
28 </cr-settings-checkbox> | 27 </cr-settings-checkbox> |
29 </paper-material> | 28 </cr-settings-section> |
30 </template> | 29 </template> |
31 <script src="downloads_page.js"></script> | 30 <script src="downloads_page.js"></script> |
32 </dom-module> | 31 </dom-module> |
OLD | NEW |