| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 /** | 184 /** |
| 185 * @private // FIXME: this is a workaround for validator bug (http://crbug.c
om/425506). | 185 * @private // FIXME: this is a workaround for validator bug (http://crbug.c
om/425506). |
| 186 * @suppressGlobalPropertiesCheck | 186 * @suppressGlobalPropertiesCheck |
| 187 */ | 187 */ |
| 188 _createAppUI: function() | 188 _createAppUI: function() |
| 189 { | 189 { |
| 190 console.timeStamp("Main._createApp"); | 190 console.timeStamp("Main._createApp"); |
| 191 | 191 |
| 192 WebInspector.initializeUIUtils(window); | 192 WebInspector.initializeUIUtils(window); |
| 193 WebInspector.installPortStyles(document); | 193 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen
t.body)); |
| 194 |
| 194 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor"
)) | 195 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor"
)) |
| 195 WebInspector.setToolbarColors(document, /** @type {string} */ (Runti
me.queryParam("toolbarColor")), /** @type {string} */ (Runtime.queryParam("textC
olor"))); | 196 WebInspector.setToolbarColors(document, /** @type {string} */ (Runti
me.queryParam("toolbarColor")), /** @type {string} */ (Runtime.queryParam("textC
olor"))); |
| 196 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.SetToolbarColors, updateToolbarColors); | 197 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.SetToolbarColors, updateToolbarColors); |
| 197 /** | 198 /** |
| 198 * @param {!WebInspector.Event} event | 199 * @param {!WebInspector.Event} event |
| 199 * @suppressGlobalPropertiesCheck | 200 * @suppressGlobalPropertiesCheck |
| 200 */ | 201 */ |
| 201 function updateToolbarColors(event) | 202 function updateToolbarColors(event) |
| 202 { | 203 { |
| 203 WebInspector.setToolbarColors(document, /** @type {string} */ (event
.data["backgroundColor"]), /** @type {string} */ (event.data["color"])); | 204 WebInspector.setToolbarColors(document, /** @type {string} */ (event
.data["backgroundColor"]), /** @type {string} */ (event.data["color"])); |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 /** | 894 /** |
| 894 * @param {!WebInspector.Event} event | 895 * @param {!WebInspector.Event} event |
| 895 */ | 896 */ |
| 896 _inspectNode: function(event) | 897 _inspectNode: function(event) |
| 897 { | 898 { |
| 898 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 899 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
| 899 } | 900 } |
| 900 } | 901 } |
| 901 | 902 |
| 902 new WebInspector.Main(); | 903 new WebInspector.Main(); |
| OLD | NEW |