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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeView.js

Issue 1641003003: [DevTools] Small cleanup after device mode v2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@device-mode-cleanup-split
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/emulation/MediaQueryInspector.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.DeviceModeView = function() 9 WebInspector.DeviceModeView = function()
10 { 10 {
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 if (this.isShowing()) 319 if (this.isShowing())
320 this._contentAreaResized(); 320 this._contentAreaResized();
321 }, 321 },
322 322
323 /** 323 /**
324 * @override 324 * @override
325 */ 325 */
326 wasShown: function() 326 wasShown: function()
327 { 327 {
328 this._measureHandles(); 328 this._measureHandles();
329 this._mediaInspector.setEnabled(true);
330 this._toolbar.restore(); 329 this._toolbar.restore();
331 }, 330 },
332 331
333 /** 332 /**
334 * @override 333 * @override
335 */ 334 */
336 willHide: function() 335 willHide: function()
337 { 336 {
338 this._model.emulate(WebInspector.DeviceModeModel.Type.None, null, null); 337 this._model.emulate(WebInspector.DeviceModeModel.Type.None, null, null);
339 this._mediaInspector.setEnabled(false);
340 }, 338 },
341 339
342 __proto__: WebInspector.VBox.prototype 340 __proto__: WebInspector.VBox.prototype
343 } 341 }
344 342
345 /** 343 /**
346 * @constructor 344 * @constructor
347 * @extends {WebInspector.VBox} 345 * @extends {WebInspector.VBox}
348 * @param {boolean} horizontal 346 * @param {boolean} horizontal
349 * @param {function(number)} applyCallback 347 * @param {function(number)} applyCallback
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 /** 440 /**
443 * @param {number} size 441 * @param {number} size
444 */ 442 */
445 _onMarkerClick: function(size) 443 _onMarkerClick: function(size)
446 { 444 {
447 this._applyCallback.call(null, size); 445 this._applyCallback.call(null, size);
448 }, 446 },
449 447
450 __proto__: WebInspector.VBox.prototype 448 __proto__: WebInspector.VBox.prototype
451 } 449 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/emulation/MediaQueryInspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698