| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 if (this._screencastController) | 54 if (this._screencastController) |
| 55 this.inspectorView.appendToRightToolbar(this._screencastController.s
tatusBarItem()); | 55 this.inspectorView.appendToRightToolbar(this._screencastController.s
tatusBarItem()); |
| 56 }, | 56 }, |
| 57 | 57 |
| 58 _createRootView: function() | 58 _createRootView: function() |
| 59 { | 59 { |
| 60 var rootView = new WebInspector.RootView(); | 60 var rootView = new WebInspector.RootView(); |
| 61 | 61 |
| 62 this._rootSplitView = new WebInspector.SplitView(false, true, this.dockC
ontroller.canDock() ? "InspectorView.splitViewState" : "InspectorView.dummySplit
ViewState", 300, 300); | 62 this._rootSplitView = new WebInspector.SplitView(false, true, this.dockC
ontroller.canDock() ? "InspectorView.splitViewState" : "InspectorView.dummySplit
ViewState", 300, 300); |
| 63 this._rootSplitView.show(rootView.element); | 63 this._rootSplitView.show(rootView.element); |
| 64 this._rootSplitView.setSidebarElementConstraints(180, 50); | |
| 65 this._rootSplitView.setMainElementConstraints(WebInspector.InspectedPage
Placeholder.Constraints.Width, WebInspector.InspectedPagePlaceholder.Constraints
.Height); | |
| 66 | 64 |
| 67 this.inspectorView.show(this._rootSplitView.sidebarElement()); | 65 this.inspectorView.show(this._rootSplitView.sidebarElement()); |
| 68 | 66 |
| 69 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder
(); | 67 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder
(); |
| 70 inspectedPagePlaceholder.show(this._rootSplitView.mainElement()); | 68 inspectedPagePlaceholder.show(this._rootSplitView.mainElement()); |
| 71 | 69 |
| 72 this.dockController.addEventListener(WebInspector.DockController.Events.
DockSideChanged, this._updateRootSplitViewOnDockSideChange, this); | 70 this.dockController.addEventListener(WebInspector.DockController.Events.
DockSideChanged, this._updateRootSplitViewOnDockSideChange, this); |
| 73 this._updateRootSplitViewOnDockSideChange(); | 71 this._updateRootSplitViewOnDockSideChange(); |
| 74 | 72 |
| 75 rootView.show(document.body); | 73 rootView.attachToBody(); |
| 76 }, | 74 }, |
| 77 | 75 |
| 78 _updateRootSplitViewOnDockSideChange: function() | 76 _updateRootSplitViewOnDockSideChange: function() |
| 79 { | 77 { |
| 80 var dockSide = WebInspector.dockController.dockSide(); | 78 var dockSide = WebInspector.dockController.dockSide(); |
| 81 if (dockSide === WebInspector.DockController.State.Undocked) { | 79 if (dockSide === WebInspector.DockController.State.Undocked) { |
| 82 this._rootSplitView.toggleResizer(this._rootSplitView.resizerElement
(), false); | 80 this._rootSplitView.toggleResizer(this._rootSplitView.resizerElement
(), false); |
| 83 this._rootSplitView.toggleResizer(this.inspectorView.topResizerEleme
nt(), false); | 81 this._rootSplitView.toggleResizer(this.inspectorView.topResizerEleme
nt(), false); |
| 84 this._rootSplitView.hideMain(); | 82 this._rootSplitView.hideMain(); |
| 85 return; | 83 return; |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 this._fontFamily = "'Lucida Grande', sans-serif"; | 778 this._fontFamily = "'Lucida Grande', sans-serif"; |
| 781 break; | 779 break; |
| 782 case "windows": | 780 case "windows": |
| 783 this._fontFamily = "'Segoe UI', Tahoma, sans-serif"; | 781 this._fontFamily = "'Segoe UI', Tahoma, sans-serif"; |
| 784 break; | 782 break; |
| 785 } | 783 } |
| 786 return WebInspector._fontFamily; | 784 return WebInspector._fontFamily; |
| 787 } | 785 } |
| 788 | 786 |
| 789 window.DEBUG = true; | 787 window.DEBUG = true; |
| OLD | NEW |