Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <link rel="import" href="chrome://resources/html/util.html"> | 1 <link rel="import" href="chrome://resources/html/util.html"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 4 <link rel="import" href="../controls/controlled_button.html"> | 4 <link rel="import" href="../controls/controlled_button.html"> |
| 5 <link rel="import" href="../controls/settings_toggle_button.html"> | 5 <link rel="import" href="../controls/settings_toggle_button.html"> |
| 6 <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"> | 7 <link rel="import" href="downloads_browser_proxy.html"> |
| 8 | 8 |
| 9 <dom-module id="settings-downloads-page"> | 9 <dom-module id="settings-downloads-page"> |
| 10 <template> | 10 <template> |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 pref="[[prefs.download.default_directory]]" | 32 pref="[[prefs.download.default_directory]]" |
| 33 end-justified> | 33 end-justified> |
| 34 </controlled-button> | 34 </controlled-button> |
| 35 </div> | 35 </div> |
| 36 <div class="settings-box block"> | 36 <div class="settings-box block"> |
| 37 <settings-toggle-button | 37 <settings-toggle-button |
| 38 pref="{{prefs.download.prompt_for_download}}" | 38 pref="{{prefs.download.prompt_for_download}}" |
| 39 label="$i18n{promptForDownload}"> | 39 label="$i18n{promptForDownload}"> |
| 40 </settings-toggle-button> | 40 </settings-toggle-button> |
| 41 <if expr="chromeos"> | 41 <if expr="chromeos"> |
| 42 <settings-toggle-button | 42 <template is="dom-if" if="[[showPage_(pageVisibility.googleDrive)]]"> |
|
dpapad
2017/05/02 23:32:00
Is it necessary to switch a div with |hidden| to d
stevenjb
2017/05/02 23:36:02
Necessary? No. I thought it was preferred?
We cou
dpapad
2017/05/02 23:45:52
It is preferable when the dom-if wraps a large DOM
stevenjb
2017/05/02 23:56:17
I guess "large" is subjective.
I personally prefe
| |
| 43 pref="{{prefs.gdata.disabled}}" | 43 <settings-toggle-button |
| 44 label="$i18n{disconnectGoogleDriveAccount}" | 44 pref="{{prefs.gdata.disabled}}" |
| 45 hidden="[[!pageVisibility.googleDrive]]"> | 45 label="$i18n{disconnectGoogleDriveAccount}"> |
| 46 </settings-toggle-button> | 46 </settings-toggle-button> |
| 47 </template> | |
| 47 </if> | 48 </if> |
| 48 </div> | 49 </div> |
| 49 <template is="dom-if" if="[[autoOpenDownloads_]]" restamp> | 50 <template is="dom-if" if="[[autoOpenDownloads_]]" restamp> |
| 50 <div class="settings-box"> | 51 <div class="settings-box"> |
| 51 <div class="start"> | 52 <div class="start"> |
| 52 $i18n{openFileTypesAutomatically} | 53 $i18n{openFileTypesAutomatically} |
| 53 </div> | 54 </div> |
| 54 <div class="separator"></div> | 55 <div class="separator"></div> |
| 55 <paper-button id="resetAutoOpenFileTypes" class="secondary-button" | 56 <paper-button id="resetAutoOpenFileTypes" class="secondary-button" |
| 56 on-tap="onClearAutoOpenFileTypesTap_"> | 57 on-tap="onClearAutoOpenFileTypesTap_"> |
| 57 $i18n{clear} | 58 $i18n{clear} |
| 58 </paper-button> | 59 </paper-button> |
| 59 </div> | 60 </div> |
| 60 </template> | 61 </template> |
| 61 </template> | 62 </template> |
| 62 <script src="downloads_page.js"></script> | 63 <script src="downloads_page.js"></script> |
| 63 </dom-module> | 64 </dom-module> |
| OLD | NEW |