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

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

Issue 2223083003: MD Settings: Skip hidden nodes when searching. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_subpage_assertion
Patch Set: Change class to attribute. 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
« no previous file with comments | « chrome/browser/resources/settings/settings_page/settings_section.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
(...skipping 15 matching lines...) Expand all
26 properties: { 26 properties: {
27 /** 27 /**
28 * 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
29 * MainPageBehavior will expand this section if this section name matches 29 * MainPageBehavior will expand this section if this section name matches
30 * currentRoute.section. 30 * currentRoute.section.
31 */ 31 */
32 section: String, 32 section: String,
33 33
34 /** Title for the section header. */ 34 /** Title for the section header. */
35 pageTitle: String, 35 pageTitle: String,
36
37 /**
38 * A CSS attribute used for temporarily hiding a SETTINGS-SECTION for the
39 * purposes of searching.
40 */
41 hiddenBySearch: {
42 type: Boolean,
43 value: false,
44 reflectToAttribute: true,
45 },
36 }, 46 },
37 47
38 /** 48 /**
39 * Freezes the section's height so its card can be removed from the flow 49 * Freezes the section's height so its card can be removed from the flow
40 * without affecting the layout of the surrounding sections. 50 * without affecting the layout of the surrounding sections.
41 * @param {boolean} frozen True to freeze, false to unfreeze. 51 * @param {boolean} frozen True to freeze, false to unfreeze.
42 * @private 52 * @private
43 */ 53 */
44 setFrozen: function(frozen) { 54 setFrozen: function(frozen) {
45 var card = this.$.card; 55 var card = this.$.card;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 234
225 /** 235 /**
226 * Information needed by TransitionBehavior to schedule animations. 236 * Information needed by TransitionBehavior to schedule animations.
227 * @typedef {{ 237 * @typedef {{
228 * card: !HTMLElement, 238 * card: !HTMLElement,
229 * keyframes: !Array<!Object>, 239 * keyframes: !Array<!Object>,
230 * options: !KeyframeEffectOptions 240 * options: !KeyframeEffectOptions
231 * }} 241 * }}
232 */ 242 */
233 SettingsSectionElement.AnimationConfig; 243 SettingsSectionElement.AnimationConfig;
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_page/settings_section.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698