| 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 "disableAgentsWhenProfile", | 176 "disableAgentsWhenProfile", |
| 177 "timelineJSCPUProfile", | 177 "timelineJSCPUProfile", |
| 178 ]); | 178 ]); |
| 179 } | 179 } |
| 180 }, | 180 }, |
| 181 | 181 |
| 182 _createAppUI: function() | 182 _createAppUI: function() |
| 183 { | 183 { |
| 184 console.timeStamp("Main._createApp"); | 184 console.timeStamp("Main._createApp"); |
| 185 | 185 |
| 186 WebInspector.installPortStyles(); | 186 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen
t.body)); |
| 187 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor"
)) | 187 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor"
)) |
| 188 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru
ntime.queryParam("textColor")); | 188 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru
ntime.queryParam("textColor")); |
| 189 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.SetToolbarColors, updateToolbarColors); | 189 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.SetToolbarColors, updateToolbarColors); |
| 190 /** | 190 /** |
| 191 * @param {!WebInspector.Event} event | 191 * @param {!WebInspector.Event} event |
| 192 */ | 192 */ |
| 193 function updateToolbarColors(event) | 193 function updateToolbarColors(event) |
| 194 { | 194 { |
| 195 WebInspector.setToolbarColors(/** @type {string} */ (event.data["bac
kgroundColor"]), /** @type {string} */ (event.data["color"])); | 195 WebInspector.setToolbarColors(/** @type {string} */ (event.data["bac
kgroundColor"]), /** @type {string} */ (event.data["color"])); |
| 196 } | 196 } |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 /** | 877 /** |
| 878 * @param {!WebInspector.Event} event | 878 * @param {!WebInspector.Event} event |
| 879 */ | 879 */ |
| 880 _inspectNode: function(event) | 880 _inspectNode: function(event) |
| 881 { | 881 { |
| 882 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 882 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
| 883 } | 883 } |
| 884 } | 884 } |
| 885 | 885 |
| 886 new WebInspector.Main(); | 886 new WebInspector.Main(); |
| OLD | NEW |