OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * | 9 * |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 InspectorAgent.enable(inspectorAgentEnableCallback.bind(this)); | 374 InspectorAgent.enable(inspectorAgentEnableCallback.bind(this)); |
375 | 375 |
376 /** | 376 /** |
377 * @this {WebInspector.Main} | 377 * @this {WebInspector.Main} |
378 */ | 378 */ |
379 function inspectorAgentEnableCallback() | 379 function inspectorAgentEnableCallback() |
380 { | 380 { |
381 WebInspector.inspectorView.showInitialPanel(); | 381 WebInspector.inspectorView.showInitialPanel(); |
382 | 382 |
383 if (WebInspector.overridesSupport.hasActiveOverrides()) { | 383 if (WebInspector.overridesSupport.hasActiveOverrides()) |
384 if (!WebInspector.settings.showEmulationViewInDrawer.get()) | |
385 WebInspector.settings.showEmulationViewInDrawer.set(true); | |
386 WebInspector.inspectorView.showViewInDrawer("emulation", true); | 384 WebInspector.inspectorView.showViewInDrawer("emulation", true); |
387 } | |
388 | |
389 if (WebInspector.settings.showPaintRects.get() || WebInspector.setti
ngs.showDebugBorders.get() || WebInspector.settings.continuousPainting.get() || | |
390 WebInspector.settings.showFPSCounter.get() || WebInspector.s
ettings.showScrollBottleneckRects.get()) { | |
391 WebInspector.settings.showRenderingViewInDrawer.set(true); | |
392 } | |
393 | 385 |
394 WebInspector.settings.showMetricsRulers.addChangeListener(showRulers
Changed); | 386 WebInspector.settings.showMetricsRulers.addChangeListener(showRulers
Changed); |
395 function showRulersChanged() | 387 function showRulersChanged() |
396 { | 388 { |
397 PageAgent.setShowViewportSizeOnResize(true, WebInspector.setting
s.showMetricsRulers.get()); | 389 PageAgent.setShowViewportSizeOnResize(true, WebInspector.setting
s.showMetricsRulers.get()); |
398 } | 390 } |
399 showRulersChanged(); | 391 showRulersChanged(); |
400 | 392 |
401 if (this._screencastController) | 393 if (this._screencastController) |
402 this._screencastController.initialize(); | 394 this._screencastController.initialize(); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 | 720 |
729 WebInspector.reload = function() | 721 WebInspector.reload = function() |
730 { | 722 { |
731 InspectorAgent.reset(); | 723 InspectorAgent.reset(); |
732 window.location.reload(); | 724 window.location.reload(); |
733 } | 725 } |
734 | 726 |
735 new WebInspector.Main(); | 727 new WebInspector.Main(); |
736 | 728 |
737 window.DEBUG = true; | 729 window.DEBUG = true; |
OLD | NEW |