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

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

Issue 2296983003: DevTools: kill WI.IsolatedFileSystemManager FileSystemsLoaded event (Closed)
Patch Set: remove nested arrow Created 4 years, 3 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 * @suppressGlobalPropertiesCheck 129 * @suppressGlobalPropertiesCheck
130 */ 130 */
131 _createAppUI: function() 131 _createAppUI: function()
132 { 132 {
133 console.timeStamp("Main._createApp"); 133 console.timeStamp("Main._createApp");
134 134
135 WebInspector.viewManager = new WebInspector.ViewManager(); 135 WebInspector.viewManager = new WebInspector.ViewManager();
136 136
137 // Request filesystems early, we won't create connections until callback is fired. Things will happen in parallel. 137 // Request filesystems early, we won't create connections until callback is fired. Things will happen in parallel.
138 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager(); 138 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager();
139 WebInspector.isolatedFileSystemManager.initialize(this._didInitializeFil eSystemManager.bind(this)); 139 WebInspector.isolatedFileSystemManager.waitForFileSystems()
140 .then(this._didInitializeFileSystemManager.bind(this));
140 141
141 var themeSetting = WebInspector.settings.createSetting("uiTheme", "defau lt"); 142 var themeSetting = WebInspector.settings.createSetting("uiTheme", "defau lt");
142 WebInspector.initializeUIUtils(document, themeSetting); 143 WebInspector.initializeUIUtils(document, themeSetting);
143 themeSetting.addChangeListener(WebInspector.reload.bind(WebInspector)); 144 themeSetting.addChangeListener(WebInspector.reload.bind(WebInspector));
144 145
145 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen t.body)); 146 WebInspector.installComponentRootStyles(/** @type {!Element} */ (documen t.body));
146 147
147 this._addMainEventListeners(document); 148 this._addMainEventListeners(document);
148 149
149 var canDock = !!Runtime.queryParam("can_dock"); 150 var canDock = !!Runtime.queryParam("can_dock");
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 * @override 1094 * @override
1094 * @return {?Element} 1095 * @return {?Element}
1095 */ 1096 */
1096 settingElement: function() 1097 settingElement: function()
1097 { 1098 {
1098 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1099 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1099 } 1100 }
1100 } 1101 }
1101 1102
1102 new WebInspector.Main(); 1103 new WebInspector.Main();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698