| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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; |
| OLD | NEW |