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

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

Issue 1826683002: MD Settings: Lazy-load sub-pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WebAnimationsExterns
Patch Set: closure Created 4 years, 8 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-internet-page' is the settings page containing internet 7 * 'settings-internet-page' is the settings page containing internet
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
11 * 11 *
12 * <core-animated-pages> 12 * <core-animated-pages>
13 * <settings-internet-page prefs='{{prefs}}'> 13 * <settings-internet-page prefs='{{prefs}}'>
14 * </settings-internet-page> 14 * </settings-internet-page>
15 * ... other pages ... 15 * ... other pages ...
16 * </core-animated-pages> 16 * </core-animated-pages>
17 */ 17 */
18 Polymer({ 18 Polymer({
19 is: 'settings-internet-page', 19 is: 'settings-internet-page',
20 20
21 behaviors: [
22 I18nBehavior,
23 ],
24
21 properties: { 25 properties: {
22 /** 26 /**
23 * The current active route. 27 * The current active route.
24 */ 28 */
25 currentRoute: { 29 currentRoute: {
26 type: Object, 30 type: Object,
27 notify: true, 31 notify: true,
28 }, 32 },
29 33
30 /** 34 /**
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 /** 67 /**
64 * @param {!{detail: {type: string}}} event 68 * @param {!{detail: {type: string}}} event
65 * @private 69 * @private
66 */ 70 */
67 onShowKnownNetworks_: function(event) { 71 onShowKnownNetworks_: function(event) {
68 this.knownNetworksType = event.detail.type; 72 this.knownNetworksType = event.detail.type;
69 this.$.pages.setSubpageChain(['known-networks']); 73 this.$.pages.setSubpageChain(['known-networks']);
70 }, 74 },
71 75
72 }); 76 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698