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

Side by Side Diff: chrome/browser/resources/settings/settings_page/settings_section.js

Issue 2210933004: Settings Router Refactor: Kill settings-router. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge Created 4 years, 4 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-section' shows a paper material themed section with a header 7 * 'settings-section' shows a paper material themed section with a header
8 * which shows its page title. 8 * which shows its page title.
9 * 9 *
10 * The section can expand vertically to fill its container's padding edge. 10 * The section can expand vertically to fill its container's padding edge.
11 * 11 *
12 * Example: 12 * Example:
13 * 13 *
14 * <settings-section page-title="[[pageTitle]]" section="privacy"> 14 * <settings-section page-title="[[pageTitle]]" section="privacy">
15 * <!-- Insert your section controls here --> 15 * <!-- Insert your section controls here -->
16 * </settings-section> 16 * </settings-section>
17 */ 17 */
18 18
19 // Fast out, slow in. 19 // Fast out, slow in.
20 var EASING_FUNCTION = 'cubic-bezier(0.4, 0, 0.2, 1)'; 20 var EASING_FUNCTION = 'cubic-bezier(0.4, 0, 0.2, 1)';
21 var EXPAND_DURATION = 350; 21 var EXPAND_DURATION = 350;
22 22
23 var SettingsSectionElement = Polymer({ 23 var SettingsSectionElement = Polymer({
24 is: 'settings-section', 24 is: 'settings-section',
25 25
26 properties: { 26 properties: {
27 /** 27 /**
28 * The current active route.
29 */
30 currentRoute: Object,
31
32 /**
33 * The section name should match a name specified in route.js. The 28 * The section name should match a name specified in route.js. The
34 * MainPageBehavior will expand this section if this section name matches 29 * MainPageBehavior will expand this section if this section name matches
35 * currentRoute.section. 30 * currentRoute.section.
36 */ 31 */
37 section: String, 32 section: String,
38 33
39 /** Title for the section header. */ 34 /** Title for the section header. */
40 pageTitle: String, 35 pageTitle: String,
41 }, 36 },
42 37
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 224
230 /** 225 /**
231 * Information needed by TransitionBehavior to schedule animations. 226 * Information needed by TransitionBehavior to schedule animations.
232 * @typedef {{ 227 * @typedef {{
233 * card: !HTMLElement, 228 * card: !HTMLElement,
234 * keyframes: !Array<!Object>, 229 * keyframes: !Array<!Object>,
235 * options: !KeyframeEffectOptions 230 * options: !KeyframeEffectOptions
236 * }} 231 * }}
237 */ 232 */
238 SettingsSectionElement.AnimationConfig; 233 SettingsSectionElement.AnimationConfig;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698