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

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

Issue 1916323002: [MD settings] side nav routing to page sections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge with master Created 4 years, 7 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 * 'settings-basic-page' is the settings page containing the basic settings. 7 * 'settings-basic-page' is the settings page containing the basic settings.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
11 * <iron-animated-pages> 11 * <iron-animated-pages>
12 * <settings-basic-page prefs="{{prefs}}"></settings-basic-page> 12 * <settings-basic-page prefs="{{prefs}}"></settings-basic-page>
13 * ... other pages ... 13 * ... other pages ...
14 * </iron-animated-pages> 14 * </iron-animated-pages>
15 */ 15 */
16 Polymer({ 16 Polymer({
17 is: 'settings-basic-page', 17 is: 'settings-basic-page',
18 18
19 behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior],
20
19 properties: { 21 properties: {
20 /** 22 /**
21 * Preferences state. 23 * Preferences state.
22 */ 24 */
23 prefs: { 25 prefs: {
24 type: Object, 26 type: Object,
25 notify: true, 27 notify: true,
26 }, 28 },
27 29
28 /** 30 /**
29 * The current active route. 31 * The current active route.
32 * @type {SettingsRoute}
30 */ 33 */
31 currentRoute: { 34 currentRoute: {
32 type: Object, 35 type: Object,
33 notify: true, 36 notify: true,
34 }, 37 },
35 38
36 /** 39 /**
37 * True if the basic page should currently display the reset profile banner. 40 * True if the basic page should currently display the reset profile banner.
38 * @private {boolean} 41 * @private {boolean}
39 */ 42 */
(...skipping 12 matching lines...) Expand all
52 * is fixed. 55 * is fixed.
53 */ 56 */
54 sectionSelector: 'settings-section', 57 sectionSelector: 'settings-section',
55 58
56 /** @override */ 59 /** @override */
57 attached: function() { 60 attached: function() {
58 /** @override */ 61 /** @override */
59 this.scroller = this.parentElement; 62 this.scroller = this.parentElement;
60 }, 63 },
61 64
62 behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior],
63
64 onResetDone_: function() { 65 onResetDone_: function() {
65 this.showResetProfileBanner_ = false; 66 this.showResetProfileBanner_ = false;
66 }, 67 },
67 }); 68 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698