OLD | NEW |
---|---|
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 * @implements {WebInspector.App} | 7 * @implements {WebInspector.App} |
8 */ | 8 */ |
9 WebInspector.AdvancedApp = function() | 9 WebInspector.AdvancedApp = function() |
10 { | 10 { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 }, | 57 }, |
58 | 58 |
59 /** | 59 /** |
60 * @param {!Document} toolboxDocument | 60 * @param {!Document} toolboxDocument |
61 */ | 61 */ |
62 toolboxLoaded: function(toolboxDocument) | 62 toolboxLoaded: function(toolboxDocument) |
63 { | 63 { |
64 WebInspector.initializeUIUtils(toolboxDocument.defaultView); | 64 WebInspector.initializeUIUtils(toolboxDocument.defaultView); |
65 WebInspector.installComponentRootStyles(/** @type {!Element} */ (toolbox Document.body)); | 65 WebInspector.installComponentRootStyles(/** @type {!Element} */ (toolbox Document.body)); |
66 WebInspector.ContextMenu.installHandler(toolboxDocument); | 66 WebInspector.ContextMenu.installHandler(toolboxDocument); |
67 if (Runtime.experiments.isEnabled("tooltips")) | 67 WebInspector.Tooltip.installHandler(toolboxDocument); |
dgozman
2015/08/18 21:58:43
There should be more usages in Tooltip.js.
pfeldman
2015/08/18 23:50:55
Sam has removed them in one of his patches. He'll
pfeldman
2015/08/19 00:00:05
Done.
| |
68 WebInspector.Tooltip.installHandler(toolboxDocument); | |
69 | 68 |
70 var rootView = new WebInspector.RootView(); | 69 var rootView = new WebInspector.RootView(); |
71 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder (); | 70 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder (); |
72 inspectedPagePlaceholder.addEventListener(WebInspector.InspectedPagePlac eholder.Events.Update, this._onSetInspectedPageBounds.bind(this, true)); | 71 inspectedPagePlaceholder.addEventListener(WebInspector.InspectedPagePlac eholder.Events.Update, this._onSetInspectedPageBounds.bind(this, true)); |
73 this._toolboxResponsiveDesignView = new WebInspector.ResponsiveDesignVie w(inspectedPagePlaceholder); | 72 this._toolboxResponsiveDesignView = new WebInspector.ResponsiveDesignVie w(inspectedPagePlaceholder); |
74 this._toolboxResponsiveDesignView.show(rootView.element); | 73 this._toolboxResponsiveDesignView.show(rootView.element); |
75 rootView.attachToDocument(toolboxDocument); | 74 rootView.attachToDocument(toolboxDocument); |
76 | 75 |
77 this._updatePageResizer(); | 76 this._updatePageResizer(); |
78 }, | 77 }, |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 WebInspector.AdvancedAppProvider.prototype = { | 204 WebInspector.AdvancedAppProvider.prototype = { |
206 /** | 205 /** |
207 * @override | 206 * @override |
208 * @return {!WebInspector.App} | 207 * @return {!WebInspector.App} |
209 */ | 208 */ |
210 createApp: function() | 209 createApp: function() |
211 { | 210 { |
212 return WebInspector.AdvancedApp._instance(); | 211 return WebInspector.AdvancedApp._instance(); |
213 } | 212 } |
214 }; | 213 }; |
OLD | NEW |