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

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

Issue 1973733002: MD Settings: About page, setup for showing a sub-page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Closure compilation. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 'settings-about-page' contains version and OS related 6 * @fileoverview 'settings-about-page' contains version and OS related
7 * information. 7 * information.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-about-page', 10 is: 'settings-about-page',
11
12 behaviors: [RoutableBehavior],
13
14 properties: {
15 /**
16 * The current active route.
17 */
18 currentRoute: {
19 type: Object,
20 notify: true,
21 },
22 },
23
24 /**
25 * @type {string} Selector to get the sections.
26 * TODO(michaelpg): replace duplicate docs with @override once b/24294625
27 * is fixed.
28 */
29 sectionSelector: 'settings-section',
30
31 /** @override */
32 attached: function() {
33 this.scroller = this.parentElement;
34 },
35
36 <if expr="chromeos">
37 /** @private */
38 onDetailedBuildInfoTap_: function() {
39 var animatedPages = /** @type {!SettingsAnimatedPagesElement} */ (
40 this.$.pages);
41 animatedPages.setSubpageChain(['detailed-build-info']);
42 },
43 </if>
11 }); 44 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698