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

Side by Side Diff: chrome/browser/resources/settings/site_settings_page/site_settings_page.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-site-settings-page' is the settings page containing privacy and 7 * 'settings-site-settings-page' is the settings page containing privacy and
8 * security site settings. 8 * security site settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
11 is: 'settings-site-settings-page', 11 is: 'settings-site-settings-page',
12 12
13 behaviors: [SiteSettingsBehavior], 13 behaviors: [SiteSettingsBehavior],
14 14
15 properties: { 15 properties: {
16 /** 16 /**
17 * The current active route.
18 */
19 currentRoute: {
20 type: Object,
21 notify: true,
22 },
23
24 /**
25 * The category selected by the user. 17 * The category selected by the user.
26 */ 18 */
27 categorySelected: { 19 categorySelected: {
28 type: String, 20 type: String,
29 notify: true, 21 notify: true,
30 }, 22 },
31 }, 23 },
32 24
33 ready: function() { 25 ready: function() {
34 this.ContentSettingsTypes = settings.ContentSettingsTypes; 26 this.ContentSettingsTypes = settings.ContentSettingsTypes;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 * @param {!Event} event The tap event. 64 * @param {!Event} event The tap event.
73 */ 65 */
74 onTapCategory: function(event) { 66 onTapCategory: function(event) {
75 var category = event.currentTarget.getAttribute('category'); 67 var category = event.currentTarget.getAttribute('category');
76 if (category == settings.ALL_SITES) 68 if (category == settings.ALL_SITES)
77 settings.navigateTo(settings.Route.SITE_SETTINGS_ALL); 69 settings.navigateTo(settings.Route.SITE_SETTINGS_ALL);
78 else 70 else
79 settings.navigateTo(this.computeCategoryRoute(category)); 71 settings.navigateTo(this.computeCategoryRoute(category));
80 }, 72 },
81 }); 73 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698