| OLD | NEW |
| 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.Widget} | 7 * @extends {WebInspector.Widget} |
| 8 * @implements {WebInspector.TargetManager.Observer} | 8 * @implements {WebInspector.TargetManager.Observer} |
| 9 * @param {function():number} getWidthCallback | 9 * @param {function():number} getWidthCallback |
| 10 * @param {function(number)} setWidthCallback | 10 * @param {function(number)} setWidthCallback |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 }, | 253 }, |
| 254 | 254 |
| 255 /** | 255 /** |
| 256 * @return {number} | 256 * @return {number} |
| 257 */ | 257 */ |
| 258 _zoomFactor: function() | 258 _zoomFactor: function() |
| 259 { | 259 { |
| 260 return WebInspector.zoomManager.zoomFactor() / this._scale; | 260 return WebInspector.zoomManager.zoomFactor() / this._scale; |
| 261 }, | 261 }, |
| 262 | 262 |
| 263 /** |
| 264 * @override |
| 265 */ |
| 263 wasShown: function() | 266 wasShown: function() |
| 264 { | 267 { |
| 265 this._scheduleMediaQueriesUpdate(); | 268 this._scheduleMediaQueriesUpdate(); |
| 266 }, | 269 }, |
| 267 | 270 |
| 268 /** | 271 /** |
| 269 * @param {!WebInspector.MediaQueryInspector.MediaQueryUIModel} model | 272 * @param {!WebInspector.MediaQueryInspector.MediaQueryUIModel} model |
| 270 * @return {!Element} | 273 * @return {!Element} |
| 271 */ | 274 */ |
| 272 _createElementFromMediaQueryModel: function(model) | 275 _createElementFromMediaQueryModel: function(model) |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 }, | 473 }, |
| 471 | 474 |
| 472 /** | 475 /** |
| 473 * @return {boolean} | 476 * @return {boolean} |
| 474 */ | 477 */ |
| 475 active: function() | 478 active: function() |
| 476 { | 479 { |
| 477 return this._active; | 480 return this._active; |
| 478 } | 481 } |
| 479 }; | 482 }; |
| OLD | NEW |