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

Side by Side Diff: Source/devtools/front_end/ui/ZoomManager.js

Issue 663083004: [DevTools] Remove remaining usages of global properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/ui/ViewportControl.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 * @constructor 6 * @constructor
7 * @extends {WebInspector.Object} 7 * @extends {WebInspector.Object}
8 * @param {!Window} window
8 * @param {!InspectorFrontendHostAPI} frontendHost 9 * @param {!InspectorFrontendHostAPI} frontendHost
9 */ 10 */
10 WebInspector.ZoomManager = function(frontendHost) 11 WebInspector.ZoomManager = function(window, frontendHost)
11 { 12 {
12 this._frontendHost = frontendHost; 13 this._frontendHost = frontendHost;
13 this._zoomFactor = this._frontendHost.zoomFactor(); 14 this._zoomFactor = this._frontendHost.zoomFactor();
14 window.addEventListener("resize", this._onWindowResize.bind(this), true); 15 window.addEventListener("resize", this._onWindowResize.bind(this), true);
15 }; 16 };
16 17
17 WebInspector.ZoomManager.Events = { 18 WebInspector.ZoomManager.Events = {
18 ZoomChanged: "ZoomChanged" 19 ZoomChanged: "ZoomChanged"
19 }; 20 };
20 21
(...skipping 14 matching lines...) Expand all
35 this.dispatchEventToListeners(WebInspector.ZoomManager.Events.ZoomCh anged, {from: oldZoomFactor, to: this._zoomFactor}); 36 this.dispatchEventToListeners(WebInspector.ZoomManager.Events.ZoomCh anged, {from: oldZoomFactor, to: this._zoomFactor});
36 }, 37 },
37 38
38 __proto__: WebInspector.Object.prototype 39 __proto__: WebInspector.Object.prototype
39 }; 40 };
40 41
41 /** 42 /**
42 * @type {!WebInspector.ZoomManager} 43 * @type {!WebInspector.ZoomManager}
43 */ 44 */
44 WebInspector.zoomManager; 45 WebInspector.zoomManager;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/ViewportControl.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698