Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: chrome/browser/resources/settings/downloads_page/downloads_page.html

Issue 1019403002: Fetch and actually set prefs (using chrome.send for now). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dan comments Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> 1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/core-label/core-label.html"> 2 <link rel="import" href="chrome://resources/polymer/core-label/core-label.html">
3 <link rel="import" href="chrome://resources/polymer/paper-input/paper-input.html "> 3 <link rel="import" href="chrome://resources/polymer/paper-input/paper-input.html ">
4 <link rel="import" href="chrome://resources/polymer/paper-shadow/paper-shadow.ht ml"> 4 <link rel="import" href="chrome://resources/polymer/paper-shadow/paper-shadow.ht ml">
5 <link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button. 5 <link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.
6 html"> 6 html">
7 <link rel="import" href="chrome://resources/cr_elements/cr_checkbox/cr_checkbox. 7 <link rel="import" href="chrome://resources/cr_elements/cr_checkbox/cr_checkbox.
8 html"> 8 html">
9 <link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html"> 9 <link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html">
10 10
11 <polymer-element name="cr-settings-downloads-page"> 11 <polymer-element name="cr-settings-downloads-page">
12 <template> 12 <template>
13 <link rel="stylesheet" href="chrome://md-settings/settings_page/settings_pag e.css"> 13 <link rel="stylesheet" href="chrome://md-settings/settings_page/settings_pag e.css">
14 <link rel="stylesheet" href="downloads_page.css"> 14 <link rel="stylesheet" href="downloads_page.css">
15 <paper-shadow layout vertical cross-fade> 15 <paper-shadow layout vertical cross-fade>
16 <cr-settings-page-header page="{{}}"></cr-settings-page-header> 16 <cr-settings-page-header page="{{}}"></cr-settings-page-header>
17 <div horizontal layout center> 17 <div horizontal layout center>
18 <core-label horizontal layout center> 18 <core-label horizontal layout center>
19 <span class="location-label">Download location:</span> 19 <span class="location-label">Download location:</span>
20 <cr-input id="downloadsPath" floatingLabel="false" 20 <cr-input id="downloadsPath" floatingLabel="false"
21 value="{{prefs.settings.download.defaultDirectory}}" readonly for> 21 value="{{prefs.settings.download.default_directory.value}}" readon ly for>
22 </cr-input> 22 </cr-input>
23 </core-label> 23 </core-label>
24 <cr-button id="changeDownloadsPath" 24 <cr-button id="changeDownloadsPath"
25 on-click="{{selectDownloadLocation}}">Change</cr-button> 25 on-click="{{selectDownloadLocation}}">Change</cr-button>
26 </div> 26 </div>
27 <core-label horizontal layout> 27 <core-label horizontal layout>
28 <cr-checkbox checked="{{prefs.settings.download.promptForDownload}}" for > 28 <cr-checkbox checked="{{prefs.settings.download.prompt_for_download.valu e}}" for>
29 </cr-checkbox> 29 </cr-checkbox>
30 <span>Ask where to save each file before downloading</span> 30 <span>Ask where to save each file before downloading</span>
31 </core-label> 31 </core-label>
32 </paper-shadow> 32 </paper-shadow>
33 </template> 33 </template>
34 <script src="downloads_page.js"></script> 34 <script src="downloads_page.js"></script>
35 </polymer-element> 35 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698