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

Side by Side Diff: Source/devtools/front_end/Settings.js

Issue 91603003: DevTools: allow injecting stylesheets as themes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
« no previous file with comments | « Source/devtools/front_end/ExtensionServer.js ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Add currently running experiments here. 265 // Add currently running experiments here.
266 this.fileSystemInspection = this._createExperiment("fileSystemInspection", " FileSystem inspection"); 266 this.fileSystemInspection = this._createExperiment("fileSystemInspection", " FileSystem inspection");
267 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas inspection"); 267 this.canvasInspection = this._createExperiment("canvasInspection ", "Canvas inspection");
268 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support" ); 268 this.cssRegions = this._createExperiment("cssRegions", "CSS Regions Support" );
269 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin gSupport", "Enable frameworks debugging support"); 269 this.frameworksDebuggingSupport = this._createExperiment("frameworksDebuggin gSupport", "Enable frameworks debugging support");
270 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel" ); 270 this.layersPanel = this._createExperiment("layersPanel", "Show Layers panel" );
271 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s tep-in candidates while debugging."); 271 this.stepIntoSelection = this._createExperiment("stepIntoSelection", "Show s tep-in candidates while debugging.");
272 this.openConsoleWithCtrlTilde = this._createExperiment("openConsoleWithCtrlT ilde", "Open console with Ctrl/Cmd+Tilde, not Esc"); 272 this.openConsoleWithCtrlTilde = this._createExperiment("openConsoleWithCtrlT ilde", "Open console with Ctrl/Cmd+Tilde, not Esc");
273 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer"); 273 this.showEditorInDrawer = this._createExperiment("showEditorInDrawer", "Show editor in drawer");
274 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU utilizati on on timeline"); 274 this.gpuTimeline = this._createExperiment("gpuTimeline", "Show GPU utilizati on on timeline");
275 this.applyCustomStylesheet = this._createExperiment("applyCustomStylesheet", "Allow custom UI themes");
275 276
276 this._cleanUpSetting(); 277 this._cleanUpSetting();
277 } 278 }
278 279
279 WebInspector.ExperimentsSettings.prototype = { 280 WebInspector.ExperimentsSettings.prototype = {
280 /** 281 /**
281 * @return {Array.<WebInspector.Experiment>} 282 * @return {Array.<WebInspector.Experiment>}
282 */ 283 */
283 get experiments() 284 get experiments()
284 { 285 {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 { 472 {
472 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused 473 // If there are too many breakpoints in a storage, it is likely due to a recent bug that caused
473 // periodical breakpoints duplication leading to inspector slowness. 474 // periodical breakpoints duplication leading to inspector slowness.
474 if (breakpointsSetting.get().length > maxBreakpointsCount) 475 if (breakpointsSetting.get().length > maxBreakpointsCount)
475 breakpointsSetting.set([]); 476 breakpointsSetting.set([]);
476 } 477 }
477 } 478 }
478 479
479 WebInspector.settings = new WebInspector.Settings(); 480 WebInspector.settings = new WebInspector.Settings();
480 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(); 481 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ExtensionServer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698