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

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

Issue 981203007: Scaffold for MD-Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: license 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 // 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 * 'cr-settings-downloads-page' is the settings page containing downloads 7 * 'cr-settings-downloads-page' is the settings page containing downloads
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
11 * 11 *
12 * <core-animated-pages> 12 * <core-animated-pages>
13 * <cr-settings-downloads-page></cr-settings-downloads-page> 13 * <cr-settings-downloads-page prefs="{{prefs}}">
14 * </cr-settings-downloads-page>
14 * ... other pages ... 15 * ... other pages ...
15 * </core-animated-pages> 16 * </core-animated-pages>
16 * 17 *
17 * @group Chrome Settings Elements 18 * @group Chrome Settings Elements
18 * @element cr-settings-downloads-page 19 * @element cr-settings-downloads-page
19 */ 20 */
20 Polymer('cr-settings-downloads-page', { 21 Polymer('cr-settings-downloads-page', {
21 publish: { 22 publish: {
22 /** 23 /**
23 * Preferences state. 24 * Preferences state.
24 * 25 *
25 * @attribute prefs 26 * @attribute prefs
26 * @type CrSettingsPrefsElement 27 * @type CrSettingsPrefsElement
27 * @default null 28 * @default null
28 */ 29 */
29 prefs: null, 30 prefs: null,
31
32 /**
33 * ID of the page.
34 *
35 * @attribute PAGE_ID
36 * @const string
37 * @default 'downloads'
38 */
39 PAGE_ID: 'downloads',
40
41 /**
42 * Title for the page header and navigation menu.
43 *
44 * @attribute pageTitle
45 * @type string
46 * @default 'Downloads'
47 */
48 pageTitle: 'Downloads',
49
50 /**
51 * Name of the 'core-icon' to show.
52 *
53 * @attribute icon
54 * @type string
55 * @default 'file-download'
56 */
57 icon: 'file-download',
30 }, 58 },
31 59
32 selectDownloadLocation: function() { 60 selectDownloadLocation: function() {
33 // TODO(orenb): Communicate with the C++ to actually display a folder 61 // TODO(orenb): Communicate with the C++ to actually display a folder
34 // picker. 62 // picker.
35 this.$.downloadsPath.value = '/Downloads'; 63 this.$.downloadsPath.value = '/Downloads';
36 }, 64 },
37 }); 65 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698