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

Unified Diff: chrome/browser/resources/settings/downloads_page/downloads_page.html

Issue 988783002: Add an initial implementation of the downloads MD settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to Michael's 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/downloads_page/downloads_page.html
diff --git a/chrome/browser/resources/settings/downloads_page/downloads_page.html b/chrome/browser/resources/settings/downloads_page/downloads_page.html
new file mode 100644
index 0000000000000000000000000000000000000000..c6a7d417739fa6772f34f5fea4ca7793a8a9b7a8
--- /dev/null
+++ b/chrome/browser/resources/settings/downloads_page/downloads_page.html
@@ -0,0 +1,30 @@
+<link rel="import" href="chrome://resources/polymer/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/core-label/core-label.html">
+<link rel="import" href="chrome://resources/polymer/paper-input/paper-input.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.
+html">
+<link rel="import" href="chrome://resources/cr_elements/cr_checkbox/cr_checkbox.
+html">
+<link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html">
+
+<polymer-element name="cr-settings-downloads-page" layout vertical>
+ <template>
+ <link rel="stylesheet" href="downloads_page.css">
+ <div horizontal layout center>
+ <core-label horizontal layout center>
+ <span class="location-label">Download location:</span>
+ <cr-input id="downloadsPath" floatingLabel="false"
+ value="{{prefs.settings.download.defaultDirectory}}" readonly for>
+ </cr-input>
+ </core-label>
+ <cr-button id="changeDownloadsPath"
+ on-click="{{selectDownloadLocation}}">Change</cr-button>
+ </div>
+ <core-label horizontal layout>
+ <cr-checkbox checked="{{prefs.settings.download.promptForDownload}}" for>
+ </cr-checkbox>
+ <span>Ask where to save each file before downloading</span>
+ </core-label>
+ </template>
+ <script src="downloads_page.js"></script>
+</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698