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

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

Issue 1736733003: MD Settings: Custom expand/collapse section animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 * '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 *
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 */ 42 */
43 showResetProfileBanner_: { 43 showResetProfileBanner_: {
44 type: Boolean, 44 type: Boolean,
45 value: function() { 45 value: function() {
46 return loadTimeData.getBoolean('showResetProfileBanner'); 46 return loadTimeData.getBoolean('showResetProfileBanner');
47 }, 47 },
48 }, 48 },
49 49
50 }, 50 },
51 51
52 behaviors: [I18nBehavior, SettingsPageVisibility], 52 /**
53 * @type {string} Selector to get the sections.
54 * TODO(michaelpg): replace duplicate docs with @override once b/24294625
55 * is fixed.
56 */
57 sectionSelector: 'settings-section',
58
59 /** @override */
60 attached: function() {
61 /** @override */
62 this.scroller = this.parentElement;
63 },
64
65 behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior],
53 66
54 onResetDone_: function() { 67 onResetDone_: function() {
55 this.showResetProfileBanner_ = false; 68 this.showResetProfileBanner_ = false;
56 }, 69 },
57 }); 70 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698