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

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

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index 8d9144d0315e28aac2bc73aab80bfab6c46d0494..e319b6c6f279e5a3584616864641e8e46a9658b1 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -163,12 +163,12 @@ Main.Main = class {
SDK.targetManager.addEventListener(
SDK.TargetManager.Events.SuspendStateChanged, this._onSuspendStateChanged.bind(this));
- Components.shortcutsScreen = new Components.ShortcutsScreen();
+ UI.shortcutsScreen = new UI.ShortcutsScreen();
// set order of some sections explicitly
- Components.shortcutsScreen.section(Common.UIString('Elements Panel'));
- Components.shortcutsScreen.section(Common.UIString('Styles Pane'));
- Components.shortcutsScreen.section(Common.UIString('Debugger'));
- Components.shortcutsScreen.section(Common.UIString('Console'));
+ UI.shortcutsScreen.section(Common.UIString('Elements Panel'));
+ UI.shortcutsScreen.section(Common.UIString('Styles Pane'));
+ UI.shortcutsScreen.section(Common.UIString('Debugger'));
+ UI.shortcutsScreen.section(Common.UIString('Console'));
Workspace.fileManager = new Workspace.FileManager();
Workspace.workspace = new Workspace.Workspace();
@@ -188,7 +188,7 @@ Main.Main = class {
new Persistence.Persistence(Workspace.workspace, Bindings.breakpointManager, Workspace.fileSystemMapping);
new Main.OverlayController();
- new Components.ExecutionContextSelector(SDK.targetManager, UI.context);
+ new Main.ExecutionContextSelector(SDK.targetManager, UI.context);
Bindings.blackboxManager = new Bindings.BlackboxManager(Bindings.debuggerWorkspaceBinding);
new Main.Main.PauseListener();
@@ -200,7 +200,7 @@ Main.Main = class {
UI.actionRegistry = new UI.ActionRegistry();
UI.shortcutRegistry = new UI.ShortcutRegistry(UI.actionRegistry, document);
- Components.ShortcutsScreen.registerShortcuts();
+ UI.ShortcutsScreen.registerShortcuts();
this._registerForwardedShortcuts();
this._registerMessageSinkListener();
new Main.Main.InspectorDomainObserver();
@@ -328,7 +328,7 @@ Main.Main = class {
_registerShortcuts() {
var shortcut = UI.KeyboardShortcut;
- var section = Components.shortcutsScreen.section(Common.UIString('All Panels'));
+ var section = UI.shortcutsScreen.section(Common.UIString('All Panels'));
var keys = [
shortcut.makeDescriptor('[', shortcut.Modifiers.CtrlOrMeta),
shortcut.makeDescriptor(']', shortcut.Modifiers.CtrlOrMeta)

Powered by Google App Engine
This is Rietveld 408576698