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

Side by Side Diff: Source/devtools/front_end/toolbox_bootstrap/Toolbox.js

Issue 651783004: DevTools: REGRESSION: can not copy Link address in console (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for landing Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/ui/ContextMenu.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 */ 7 */
8 WebInspector.Toolbox = function() 8 WebInspector.Toolbox = function()
9 { 9 {
10 if (!window.opener) 10 if (!window.opener)
11 return; 11 return;
12 12
13 WebInspector.zoomManager = new WebInspector.ZoomManager(window.opener.Inspec torFrontendHost); 13 WebInspector.zoomManager = new WebInspector.ZoomManager(window.opener.Inspec torFrontendHost);
14 WebInspector.overridesSupport = window.opener.WebInspector.overridesSupport; 14 WebInspector.overridesSupport = window.opener.WebInspector.overridesSupport;
15 WebInspector.settings = window.opener.WebInspector.settings; 15 WebInspector.settings = window.opener.WebInspector.settings;
16 WebInspector.experimentsSettings = window.opener.WebInspector.experimentsSet tings; 16 WebInspector.experimentsSettings = window.opener.WebInspector.experimentsSet tings;
17 WebInspector.targetManager = window.opener.WebInspector.targetManager; 17 WebInspector.targetManager = window.opener.WebInspector.targetManager;
18 WebInspector.workspace = window.opener.WebInspector.workspace; 18 WebInspector.workspace = window.opener.WebInspector.workspace;
19 WebInspector.cssWorkspaceBinding = window.opener.WebInspector.cssWorkspaceBi nding; 19 WebInspector.cssWorkspaceBinding = window.opener.WebInspector.cssWorkspaceBi nding;
20 WebInspector.Revealer = window.opener.WebInspector.Revealer; 20 WebInspector.Revealer = window.opener.WebInspector.Revealer;
21 WebInspector.ContextMenu = window.opener.WebInspector.ContextMenu; 21 WebInspector.ContextMenu = window.opener.WebInspector.ContextMenu;
22 WebInspector.ContextMenu.installHandler(document);
22 WebInspector.installPortStyles(); 23 WebInspector.installPortStyles();
23 24
24 var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.W ebInspector["app"]); 25 var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.W ebInspector["app"]);
25 var rootView = new WebInspector.RootView(); 26 var rootView = new WebInspector.RootView();
26 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder(); 27 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder();
27 this._responsiveDesignView = new WebInspector.ResponsiveDesignView(inspected PagePlaceholder); 28 this._responsiveDesignView = new WebInspector.ResponsiveDesignView(inspected PagePlaceholder);
28 this._responsiveDesignView.show(rootView.element); 29 this._responsiveDesignView.show(rootView.element);
29 rootView.attachToBody(); 30 rootView.attachToBody();
30 delegate.toolboxLoaded(this._responsiveDesignView, inspectedPagePlaceholder) ; 31 delegate.toolboxLoaded(this._responsiveDesignView, inspectedPagePlaceholder) ;
31 } 32 }
32 33
33 // FIXME: This stub is invoked from the backend and should be removed 34 // FIXME: This stub is invoked from the backend and should be removed
34 // once we migrate to the "pull" model for extensions retrieval. 35 // once we migrate to the "pull" model for extensions retrieval.
35 WebInspector.addExtensions = function() {} 36 WebInspector.addExtensions = function() {}
36 37
37 function windowLoaded() 38 function windowLoaded()
38 { 39 {
39 window.removeEventListener("DOMContentLoaded", windowLoaded, false); 40 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
40 new WebInspector.Toolbox(); 41 new WebInspector.Toolbox();
41 } 42 }
42 43
43 if (document.readyState === "complete") 44 if (document.readyState === "complete")
44 new WebInspector.Toolbox(); 45 new WebInspector.Toolbox();
45 else 46 else
46 window.addEventListener("DOMContentLoaded", windowLoaded, false); 47 window.addEventListener("DOMContentLoaded", windowLoaded, false);
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/ui/ContextMenu.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698