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 * 'zoom-levels' is the polymer element for showing the sites that are zoomed in | 7 * 'zoom-levels' is the polymer element for showing the sites that are zoomed in |
8 * or out. | 8 * or out. |
9 */ | 9 */ |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 */ | 34 */ |
35 onZoomLevelsChanged_: function(sites) { | 35 onZoomLevelsChanged_: function(sites) { |
36 this.sites_ = sites; | 36 this.sites_ = sites; |
37 }, | 37 }, |
38 | 38 |
39 /** | 39 /** |
40 * A handler for when a zoom level for a site is deleted. | 40 * A handler for when a zoom level for a site is deleted. |
41 * @param {!{model: !{index: number}}} event | 41 * @param {!{model: !{index: number}}} event |
42 * @private | 42 * @private |
43 */ | 43 */ |
44 removeZoomLevel_: function(event) { | 44 removeZoomLevel_: function(event) { |
45 var site = this.sites_[event.model.index]; | 45 var site = this.sites_[event.model.index]; |
46 this.browserProxy.removeZoomLevel(site.origin); | 46 this.browserProxy.removeZoomLevel(site.origin); |
47 }, | 47 }, |
48 }); | 48 }); |
OLD | NEW |