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

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

Issue 2713343003: MD Settings: Add "Auto Open" setting to Downloads page UI. (Closed)
Patch Set: format Created 3 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/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.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/iron-flex-layout/classe s/iron-flex-layout.html">
3 <link rel="import" href="../controls/controlled_button.html"> 4 <link rel="import" href="../controls/controlled_button.html">
4 <link rel="import" href="../controls/settings_toggle_button.html"> 5 <link rel="import" href="../controls/settings_toggle_button.html">
5 <link rel="import" href="../settings_shared_css.html"> 6 <link rel="import" href="../settings_shared_css.html">
7 <link rel="import" href="downloads_browser_proxy.html">
6 8
7 <dom-module id="settings-downloads-page"> 9 <dom-module id="settings-downloads-page">
8 <template> 10 <template>
9 <style include="settings-shared"></style> 11 <style include="settings-shared"></style>
10 <div class="settings-box first two-line"> 12 <div class="settings-box first two-line">
11 <div class="start"> 13 <div class="start">
12 <div>$i18n{downloadLocation}</div> 14 <div>$i18n{downloadLocation}</div>
13 <div class="secondary"> 15 <div class="secondary">
14 <if expr="not chromeos"> 16 <if expr="not chromeos">
15 [[prefs.download.default_directory.value]] 17 [[prefs.download.default_directory.value]]
(...skipping 18 matching lines...) Expand all
34 label="$i18n{promptForDownload}"> 36 label="$i18n{promptForDownload}">
35 </settings-toggle-button> 37 </settings-toggle-button>
36 <if expr="chromeos"> 38 <if expr="chromeos">
37 <settings-toggle-button 39 <settings-toggle-button
38 pref="{{prefs.gdata.disabled}}" 40 pref="{{prefs.gdata.disabled}}"
39 label="$i18n{disconnectGoogleDriveAccount}" 41 label="$i18n{disconnectGoogleDriveAccount}"
40 hidden="[[!pageVisibility.googleDrive]]"> 42 hidden="[[!pageVisibility.googleDrive]]">
41 </settings-toggle-button> 43 </settings-toggle-button>
42 </if> 44 </if>
43 </div> 45 </div>
46 <template is="dom-if" if="[[autoOpenDownloads_]]" restamp>
47 <div class="settings-box">
48 <div class="start">
49 $i18n{openFileTypesAutomatically}
50 </div>
51 <div class="secondary-action">
52 <paper-button id="resetAutoOpenFileTypes" class="secondary-button"
53 on-tap="onClearAutoOpenFileTypesTap_">
54 $i18n{clear}
55 </paper-button>
56 </div>
57 </div>
58 </template>
44 </template> 59 </template>
45 <script src="downloads_page.js"></script> 60 <script src="downloads_page.js"></script>
46 </dom-module> 61 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698