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

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

Issue 1458223005: DevTools: Add dark theme hidden experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. now purple == purple, etc. Created 5 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/inspectorStyle.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 /** 100 /**
101 * @param {!Object<string, string>} prefs 101 * @param {!Object<string, string>} prefs
102 */ 102 */
103 _initializeExperiments: function(prefs) 103 _initializeExperiments: function(prefs)
104 { 104 {
105 Runtime.experiments.register("accessibilityInspection", "Accessibility I nspection"); 105 Runtime.experiments.register("accessibilityInspection", "Accessibility I nspection");
106 Runtime.experiments.register("animationInspection", "Animation Inspectio n"); 106 Runtime.experiments.register("animationInspection", "Animation Inspectio n");
107 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t hemes"); 107 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t hemes");
108 Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox Jav aScript frames on Timeline", true); 108 Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox Jav aScript frames on Timeline", true);
109 Runtime.experiments.register("colorContrastRatio", "Contrast ratio line in color picker", true); 109 Runtime.experiments.register("colorContrastRatio", "Contrast ratio line in color picker", true);
110 Runtime.experiments.register("darkTheme", "Dark theme", true);
110 Runtime.experiments.register("deviceMode", "Device mode", true); 111 Runtime.experiments.register("deviceMode", "Device mode", true);
111 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source map auto-stepping"); 112 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source map auto-stepping");
112 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion"); 113 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion");
113 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true ); 114 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true );
114 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve nts on Timeline overview", true); 115 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve nts on Timeline overview", true);
115 Runtime.experiments.register("layersPanel", "Layers panel"); 116 Runtime.experiments.register("layersPanel", "Layers panel");
116 Runtime.experiments.register("layoutEditor", "Layout editor", true); 117 Runtime.experiments.register("layoutEditor", "Layout editor", true);
117 Runtime.experiments.register("materialDesign", "Material design"); 118 Runtime.experiments.register("materialDesign", "Material design");
118 Runtime.experiments.register("multipleTimelineViews", "Multiple main vie ws on Timeline", true); 119 Runtime.experiments.register("multipleTimelineViews", "Multiple main vie ws on Timeline", true);
119 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView", "Network request headers filter in details view", true); 120 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView", "Network request headers filter in details view", true);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 _createAppUI: function() 161 _createAppUI: function()
161 { 162 {
162 console.timeStamp("Main._createApp"); 163 console.timeStamp("Main._createApp");
163 164
164 // Request filesystems early, we won't create connections until callback is fired. Things will happen in parallel. 165 // Request filesystems early, we won't create connections until callback is fired. Things will happen in parallel.
165 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager(); 166 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager();
166 WebInspector.isolatedFileSystemManager.initialize(this._didInitializeFil eSystemManager.bind(this)); 167 WebInspector.isolatedFileSystemManager.initialize(this._didInitializeFil eSystemManager.bind(this));
167 168
168 WebInspector.initializeUIUtils(window); 169 WebInspector.initializeUIUtils(window);
169 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen t.body)); 170 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen t.body));
171 if (Runtime.experiments.isEnabled("darkTheme")) {
172 document.body.classList.add("dark-theme");
173 }
170 174
171 this._addMainEventListeners(document); 175 this._addMainEventListeners(document);
172 176
173 var canDock = !!Runtime.queryParam("can_dock"); 177 var canDock = !!Runtime.queryParam("can_dock");
174 WebInspector.zoomManager = new WebInspector.ZoomManager(window, Inspecto rFrontendHost); 178 WebInspector.zoomManager = new WebInspector.ZoomManager(window, Inspecto rFrontendHost);
175 WebInspector.inspectorView = new WebInspector.InspectorView(); 179 WebInspector.inspectorView = new WebInspector.InspectorView();
176 WebInspector.ContextMenu.initialize(); 180 WebInspector.ContextMenu.initialize();
177 WebInspector.ContextMenu.installHandler(document); 181 WebInspector.ContextMenu.installHandler(document);
178 WebInspector.Tooltip.installHandler(document); 182 WebInspector.Tooltip.installHandler(document);
179 WebInspector.dockController = new WebInspector.DockController(canDock); 183 WebInspector.dockController = new WebInspector.DockController(canDock);
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 */ 1048 */
1045 willHide: function() 1049 willHide: function()
1046 { 1050 {
1047 this._hideCallback.call(null); 1051 this._hideCallback.call(null);
1048 }, 1052 },
1049 1053
1050 __proto__: WebInspector.VBox.prototype 1054 __proto__: WebInspector.VBox.prototype
1051 } 1055 }
1052 1056
1053 new WebInspector.Main(); 1057 new WebInspector.Main();
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/inspectorStyle.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698