OLD | NEW |
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 | 6 * @fileoverview |
7 * 'site-data' handles showing the local storage summary list for all sites. | 7 * 'site-data' handles showing the local storage summary list for all sites. |
8 */ | 8 */ |
9 | 9 |
10 /** | 10 /** |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 * @private | 48 * @private |
49 */ | 49 */ |
50 focusConfigChanged_: function(newConfig, oldConfig) { | 50 focusConfigChanged_: function(newConfig, oldConfig) { |
51 // focusConfig is set only once on the parent, so this observer should only | 51 // focusConfig is set only once on the parent, so this observer should only |
52 // fire once. | 52 // fire once. |
53 assert(!oldConfig); | 53 assert(!oldConfig); |
54 | 54 |
55 // Populate the |focusConfig| map of the parent <settings-animated-pages> | 55 // Populate the |focusConfig| map of the parent <settings-animated-pages> |
56 // element, with additional entries that correspond to subpage trigger | 56 // element, with additional entries that correspond to subpage trigger |
57 // elements residing in this element's Shadow DOM. | 57 // elements residing in this element's Shadow DOM. |
58 this.focusConfig.set( | 58 if (settings.routes.SITE_SETTINGS_DATA_DETAILS) { |
59 settings.Route.SITE_SETTINGS_DATA_DETAILS.path, | 59 this.focusConfig.set( |
60 '* /deep/ #filter /deep/ #searchInput'); | 60 settings.routes.SITE_SETTINGS_DATA_DETAILS.path, |
| 61 '* /deep/ #filter /deep/ #searchInput'); |
| 62 } |
61 }, | 63 }, |
62 | 64 |
63 /** @override */ | 65 /** @override */ |
64 ready: function() { | 66 ready: function() { |
65 this.loadCookies(); | 67 this.loadCookies(); |
66 }, | 68 }, |
67 | 69 |
68 /** | 70 /** |
69 * A filter function for the list. | 71 * A filter function for the list. |
70 * @param {!CookieDataSummaryItem} item The item to possibly filter out. | 72 * @param {!CookieDataSummaryItem} item The item to possibly filter out. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 e.stopPropagation(); | 155 e.stopPropagation(); |
154 this.browserProxy.removeCookie(e.model.item.id); | 156 this.browserProxy.removeCookie(e.model.item.id); |
155 }, | 157 }, |
156 | 158 |
157 /** | 159 /** |
158 * @param {!{model: !{item: CookieDataSummaryItem}}} event | 160 * @param {!{model: !{item: CookieDataSummaryItem}}} event |
159 * @private | 161 * @private |
160 */ | 162 */ |
161 onSiteTap_: function(event) { | 163 onSiteTap_: function(event) { |
162 settings.navigateTo( | 164 settings.navigateTo( |
163 settings.Route.SITE_SETTINGS_DATA_DETAILS, | 165 settings.routes.SITE_SETTINGS_DATA_DETAILS, |
164 new URLSearchParams('site=' + event.model.item.site)); | 166 new URLSearchParams('site=' + event.model.item.site)); |
165 }, | 167 }, |
166 }); | 168 }); |
OLD | NEW |