| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @extends {WebInspector.VBox} | 33 * @extends {WebInspector.VBox} |
| 34 */ | 34 */ |
| 35 WebInspector.OverridesView = function() | 35 WebInspector.OverridesView = function() |
| 36 { | 36 { |
| 37 WebInspector.VBox.call(this); | 37 WebInspector.VBox.call(this); |
| 38 this.setMinimumSize(0, 30); | 38 this.setMinimumSize(0, 30); |
| 39 this.registerRequiredCSS("emulation/overrides.css"); | 39 this.registerRequiredCSS("emulation/overrides.css"); |
| 40 this.element.classList.add("overrides-view"); | 40 this.element.classList.add("overrides-view"); |
| 41 if (Runtime.experiments.isEnabled("deviceArt")) |
| 42 this.element.classList.add("device-art"); |
| 41 | 43 |
| 42 this._tabbedPane = new WebInspector.TabbedPane(); | 44 this._tabbedPane = new WebInspector.TabbedPane(); |
| 43 this._tabbedPane.setShrinkableTabs(false); | 45 this._tabbedPane.setShrinkableTabs(false); |
| 44 this._tabbedPane.setVerticalTabLayout(true); | 46 this._tabbedPane.setVerticalTabLayout(true); |
| 45 | 47 |
| 46 new WebInspector.OverridesView.DeviceTab().appendAsTab(this._tabbedPane); | 48 new WebInspector.OverridesView.DeviceTab().appendAsTab(this._tabbedPane); |
| 47 new WebInspector.OverridesView.MediaTab().appendAsTab(this._tabbedPane); | 49 new WebInspector.OverridesView.MediaTab().appendAsTab(this._tabbedPane); |
| 48 new WebInspector.OverridesView.NetworkTab().appendAsTab(this._tabbedPane); | 50 new WebInspector.OverridesView.NetworkTab().appendAsTab(this._tabbedPane); |
| 49 new WebInspector.OverridesView.SensorsTab().appendAsTab(this._tabbedPane); | 51 new WebInspector.OverridesView.SensorsTab().appendAsTab(this._tabbedPane); |
| 50 | 52 |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 * @override | 638 * @override |
| 637 * @param {!Object} overridesSupport | 639 * @param {!Object} overridesSupport |
| 638 * @return {!Promise} | 640 * @return {!Promise} |
| 639 */ | 641 */ |
| 640 reveal: function(overridesSupport) | 642 reveal: function(overridesSupport) |
| 641 { | 643 { |
| 642 WebInspector.inspectorView.showViewInDrawer("emulation"); | 644 WebInspector.inspectorView.showViewInDrawer("emulation"); |
| 643 return Promise.resolve(); | 645 return Promise.resolve(); |
| 644 } | 646 } |
| 645 } | 647 } |
| OLD | NEW |