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

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

Issue 452083002: DevTools: Implement CSS/JS documentation context menu provider for CodeMirrorTextEditor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@my-patch
Patch Set: Rebased master branch Created 6 years, 4 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
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 { 182 {
183 console.timeStamp("Main._createModuleManager"); 183 console.timeStamp("Main._createModuleManager");
184 self.runtime = new Runtime(allDescriptors); 184 self.runtime = new Runtime(allDescriptors);
185 185
186 // FIXME: define html-per-app, make configuration a part of the app. 186 // FIXME: define html-per-app, make configuration a part of the app.
187 var configuration = ["main", "elements", "network", "sources", "timeline ", "profiler", "resources", "audits", "console", "source_frame", "extensions", " settings"]; 187 var configuration = ["main", "elements", "network", "sources", "timeline ", "profiler", "resources", "audits", "console", "source_frame", "extensions", " settings"];
188 if (WebInspector.experimentsSettings.layersPanel.isEnabled()) 188 if (WebInspector.experimentsSettings.layersPanel.isEnabled())
189 configuration.push("layers"); 189 configuration.push("layers");
190 if (WebInspector.experimentsSettings.devicesPanel.isEnabled() && !!WebIn spector.queryParam("can_dock")) 190 if (WebInspector.experimentsSettings.devicesPanel.isEnabled() && !!WebIn spector.queryParam("can_dock"))
191 configuration.push("devices"); 191 configuration.push("devices");
192 if (WebInspector.experimentsSettings.documentation.isEnabled())
193 configuration.push("documentation");
192 if (WebInspector.isWorkerFrontend()) 194 if (WebInspector.isWorkerFrontend())
193 configuration = ["main", "sources", "timeline", "profiler", "console ", "source_frame"]; 195 configuration = ["main", "sources", "timeline", "profiler", "console ", "source_frame"];
194 self.runtime.registerModules(configuration); 196 self.runtime.registerModules(configuration);
195 }, 197 },
196 198
197 _createAppUI: function() 199 _createAppUI: function()
198 { 200 {
199 console.timeStamp("Main._createApp"); 201 console.timeStamp("Main._createApp");
200 202
201 WebInspector.installPortStyles(); 203 WebInspector.installPortStyles();
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 903
902 WebInspector.Main.InspectedNodeRevealer.prototype = { 904 WebInspector.Main.InspectedNodeRevealer.prototype = {
903 /** 905 /**
904 * @param {!WebInspector.Event} event 906 * @param {!WebInspector.Event} event
905 */ 907 */
906 _inspectNode: function(event) 908 _inspectNode: function(event)
907 { 909 {
908 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 910 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
909 } 911 }
910 } 912 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/documentation/module.json ('k') | Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698