| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-downloads-page' is the settings page containing downloads | 7 * 'settings-downloads-page' is the settings page containing downloads |
| 8 * settings. | 8 * settings. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| 11 * | 11 * |
| 12 * <iron-animated-pages> | 12 * <iron-animated-pages> |
| 13 * <settings-downloads-page prefs="{{prefs}}"> | 13 * <settings-downloads-page prefs="{{prefs}}"> |
| 14 * </settings-downloads-page> | 14 * </settings-downloads-page> |
| 15 * ... other pages ... | 15 * ... other pages ... |
| 16 * </iron-animated-pages> | 16 * </iron-animated-pages> |
| 17 */ | 17 */ |
| 18 Polymer({ | 18 Polymer({ |
| 19 is: 'settings-downloads-page', | 19 is: 'settings-downloads-page', |
| 20 | 20 |
| 21 properties: { | 21 properties: { |
| 22 /** | 22 /** |
| 23 * Preferences state. | 23 * Preferences state. |
| 24 */ | 24 */ |
| 25 prefs: { | 25 prefs: { |
| 26 type: Object, | 26 type: Object, |
| 27 notify: true, | 27 notify: true, |
| 28 }, | 28 }, |
| 29 |
| 30 /** |
| 31 * Dictionary defining page visibility. |
| 32 * @type {!DownloadsPageVisibility} |
| 33 */ |
| 34 pageVisibility: Object, |
| 29 }, | 35 }, |
| 30 | 36 |
| 31 /** @private */ | 37 /** @private */ |
| 32 selectDownloadLocation_: function() { | 38 selectDownloadLocation_: function() { |
| 33 chrome.send('selectDownloadLocation'); | 39 chrome.send('selectDownloadLocation'); |
| 34 }, | 40 }, |
| 35 }); | 41 }); |
| OLD | NEW |