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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 }, | 77 }, |
78 | 78 |
79 /** | 79 /** |
80 * @return {boolean} | 80 * @return {boolean} |
81 */ | 81 */ |
82 isInspectingDevice: function() | 82 isInspectingDevice: function() |
83 { | 83 { |
84 return !!WebInspector.queryParamsObject["remoteFrontend"]; | 84 return !!WebInspector.queryParamsObject["remoteFrontend"]; |
85 }, | 85 }, |
86 | 86 |
| 87 /** |
| 88 * @return {boolean} |
| 89 */ |
| 90 useOverlayContentsLayout: function() |
| 91 { |
| 92 var docked = WebInspector.queryParamsObject["dockSide"] !== WebInspector
.DockController.State.Undocked; |
| 93 if (WebInspector.dockController) |
| 94 docked = WebInspector.dockController.dockSide() !== WebInspector.Doc
kController.State.Undocked; |
| 95 return docked && !!WebInspector.queryParamsObject["overlayContents"]; |
| 96 }, |
| 97 |
87 _toggleScreencastButtonClicked: function() | 98 _toggleScreencastButtonClicked: function() |
88 { | 99 { |
89 this._toggleScreencastButton.toggled = !this._toggleScreencastButton.tog
gled; | 100 this._toggleScreencastButton.toggled = !this._toggleScreencastButton.tog
gled; |
90 WebInspector.settings.screencastEnabled.set(this._toggleScreencastButton
.toggled); | 101 WebInspector.settings.screencastEnabled.set(this._toggleScreencastButton
.toggled); |
91 | 102 |
92 if (this._toggleScreencastButton.toggled) { | 103 if (this._toggleScreencastButton.toggled) { |
93 if (!this._screencastView) { | 104 if (!this._screencastView) { |
94 // Rebuild the UI upon first invocation. | 105 // Rebuild the UI upon first invocation. |
95 this._screencastView = new WebInspector.ScreencastView(); | 106 this._screencastView = new WebInspector.ScreencastView(); |
96 this._screencastSplitView = new WebInspector.SplitView(true, Web
Inspector.settings.screencastSidebarWidth.name); | 107 this._screencastSplitView = new WebInspector.SplitView(true, Web
Inspector.settings.screencastSidebarWidth.name); |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 | 1015 |
1005 /** | 1016 /** |
1006 * @return {string} | 1017 * @return {string} |
1007 */ | 1018 */ |
1008 WebInspector.getSelectionForegroundColor = function() | 1019 WebInspector.getSelectionForegroundColor = function() |
1009 { | 1020 { |
1010 return InspectorFrontendHost.getSelectionForegroundColor(); | 1021 return InspectorFrontendHost.getSelectionForegroundColor(); |
1011 } | 1022 } |
1012 | 1023 |
1013 window.DEBUG = true; | 1024 window.DEBUG = true; |
OLD | NEW |