| Index: Source/devtools/front_end/main/App.js
|
| diff --git a/Source/devtools/front_end/main/App.js b/Source/devtools/front_end/main/App.js
|
| index ed9a8987cc0965318d886aa3acbc023b3214d970..e99b8361db550cf011912cc8fa1271bcc90867e8 100644
|
| --- a/Source/devtools/front_end/main/App.js
|
| +++ b/Source/devtools/front_end/main/App.js
|
| @@ -8,38 +8,10 @@
|
| */
|
| WebInspector.App = function()
|
| {
|
| - if (WebInspector.overridesSupport.responsiveDesignAvailable()) {
|
| - this._toggleEmulationButton = new WebInspector.StatusBarButton(WebInspector.UIString("Toggle device mode."), "emulation-status-bar-item");
|
| - this._toggleEmulationButton.toggled = WebInspector.overridesSupport.emulationEnabled();
|
| - this._toggleEmulationButton.addEventListener("click", this._toggleEmulationEnabled, this);
|
| - WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.EmulationStateChanged, this._emulationEnabledChanged, this);
|
| - WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.OverridesWarningUpdated, this._overridesWarningUpdated, this);
|
| - }
|
| WebInspector.console.setUIDelegate(this);
|
| };
|
|
|
| WebInspector.App.prototype = {
|
| - _toggleEmulationEnabled: function()
|
| - {
|
| - WebInspector.overridesSupport.setEmulationEnabled(!this._toggleEmulationButton.toggled);
|
| - },
|
| -
|
| - _emulationEnabledChanged: function()
|
| - {
|
| - this._toggleEmulationButton.toggled = WebInspector.overridesSupport.emulationEnabled();
|
| - if (!WebInspector.overridesSupport.responsiveDesignAvailable() && WebInspector.overridesSupport.emulationEnabled())
|
| - WebInspector.inspectorView.showViewInDrawer("emulation", true);
|
| - },
|
| -
|
| - _overridesWarningUpdated: function()
|
| - {
|
| - if (!this._toggleEmulationButton)
|
| - return;
|
| - var message = WebInspector.overridesSupport.warningMessage();
|
| - this._toggleEmulationButton.title = message || WebInspector.UIString("Toggle device mode.");
|
| - this._toggleEmulationButton.element.classList.toggle("warning", !!message);
|
| - },
|
| -
|
| createRootView: function()
|
| {
|
| },
|
| @@ -54,7 +26,6 @@ WebInspector.App.prototype = {
|
| WebInspector.overridesSupport.applyInitialOverrides();
|
| if (!WebInspector.overridesSupport.responsiveDesignAvailable() && WebInspector.overridesSupport.emulationEnabled())
|
| WebInspector.inspectorView.showViewInDrawer("emulation", true);
|
| - this._overridesWarningUpdated();
|
| },
|
|
|
| showConsole: function()
|
| @@ -64,26 +35,6 @@ WebInspector.App.prototype = {
|
| };
|
|
|
| /**
|
| - * @constructor
|
| - * @implements {WebInspector.StatusBarButton.Provider}
|
| - */
|
| -WebInspector.App.EmulationButtonProvider = function()
|
| -{
|
| -}
|
| -
|
| -WebInspector.App.EmulationButtonProvider.prototype = {
|
| - /**
|
| - * @return {?WebInspector.StatusBarButton}
|
| - */
|
| - button: function()
|
| - {
|
| - if (!(WebInspector.app instanceof WebInspector.App))
|
| - return null;
|
| - return WebInspector.app._toggleEmulationButton || null;
|
| - }
|
| -}
|
| -
|
| -/**
|
| * @type {!WebInspector.App}
|
| */
|
| WebInspector.app;
|
|
|