Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: Source/devtools/front_end/main/Main.js

Issue 1169323004: DevTools: do not respect Chrome theme in DevTools, align toolbar items. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: overflow for tab header fixed. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 /** 174 /**
175 * @suppressGlobalPropertiesCheck 175 * @suppressGlobalPropertiesCheck
176 */ 176 */
177 _createAppUI: function() 177 _createAppUI: function()
178 { 178 {
179 console.timeStamp("Main._createApp"); 179 console.timeStamp("Main._createApp");
180 180
181 WebInspector.initializeUIUtils(window); 181 WebInspector.initializeUIUtils(window);
182 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen t.body)); 182 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen t.body));
183 183
184 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor" ))
185 WebInspector.setToolbarColors(document, /** @type {string} */ (Runti me.queryParam("toolbarColor")), /** @type {string} */ (Runtime.queryParam("textC olor")));
186 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.SetToolbarColors, updateToolbarColors);
187 /**
188 * @param {!WebInspector.Event} event
189 * @suppressGlobalPropertiesCheck
190 */
191 function updateToolbarColors(event)
192 {
193 WebInspector.setToolbarColors(document, /** @type {string} */ (event .data["backgroundColor"]), /** @type {string} */ (event.data["color"]));
194 }
195
196 this._addMainEventListeners(document); 184 this._addMainEventListeners(document);
197 185
198 var canDock = !!Runtime.queryParam("can_dock"); 186 var canDock = !!Runtime.queryParam("can_dock");
199 WebInspector.zoomManager = new WebInspector.ZoomManager(window, Inspecto rFrontendHost); 187 WebInspector.zoomManager = new WebInspector.ZoomManager(window, Inspecto rFrontendHost);
200 WebInspector.inspectorView = new WebInspector.InspectorView(); 188 WebInspector.inspectorView = new WebInspector.InspectorView();
201 WebInspector.ContextMenu.initialize(); 189 WebInspector.ContextMenu.initialize();
202 WebInspector.ContextMenu.installHandler(document); 190 WebInspector.ContextMenu.installHandler(document);
203 WebInspector.dockController = new WebInspector.DockController(canDock); 191 WebInspector.dockController = new WebInspector.DockController(canDock);
204 WebInspector.overridesSupport = new WebInspector.OverridesSupport(); 192 WebInspector.overridesSupport = new WebInspector.OverridesSupport();
205 WebInspector.emulatedDevicesList = new WebInspector.EmulatedDevicesList( ); 193 WebInspector.emulatedDevicesList = new WebInspector.EmulatedDevicesList( );
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 p.classList.add("help-section"); 837 p.classList.add("help-section");
850 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically."); 838 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically.");
851 } 839 }
852 840
853 WebInspector.WorkerTerminatedScreen.prototype = { 841 WebInspector.WorkerTerminatedScreen.prototype = {
854 842
855 __proto__: WebInspector.HelpScreen.prototype 843 __proto__: WebInspector.HelpScreen.prototype
856 } 844 }
857 845
858 new WebInspector.Main(); 846 new WebInspector.Main();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/inspectorStyle.css ('k') | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698