| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @interface | 6 * @interface |
| 7 */ | 7 */ |
| 8 WebInspector.View = function() | 8 WebInspector.View = function() |
| 9 { | 9 { |
| 10 } | 10 } |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 var id = view.viewId(); | 674 var id = view.viewId(); |
| 675 this._views.set(id, view); | 675 this._views.set(id, view); |
| 676 view[WebInspector.ViewManager._Location.symbol] = this; | 676 view[WebInspector.ViewManager._Location.symbol] = this; |
| 677 if (view.isTransient()) | 677 if (view.isTransient()) |
| 678 continue; | 678 continue; |
| 679 if (!view.isCloseable()) | 679 if (!view.isCloseable()) |
| 680 this._appendTab(view); | 680 this._appendTab(view); |
| 681 else if (this._closeableTabSetting.get()[id]) | 681 else if (this._closeableTabSetting.get()[id]) |
| 682 this._appendTab(view); | 682 this._appendTab(view); |
| 683 } | 683 } |
| 684 }, | 684 if (this._lastSelectedTabSetting && this._tabbedPane.hasTab(this._lastSe
lectedTabSetting.get())) |
| 685 | |
| 686 wasShown: function() | |
| 687 { | |
| 688 if (this._wasAlreadyShown || !this._lastSelectedTabSetting) | |
| 689 return; | |
| 690 this._wasAlreadyShown = true; | |
| 691 if (this._tabbedPane.hasTab(this._lastSelectedTabSetting.get())) | |
| 692 this._tabbedPane.selectTab(this._lastSelectedTabSetting.get()); | 685 this._tabbedPane.selectTab(this._lastSelectedTabSetting.get()); |
| 693 }, | 686 }, |
| 694 | 687 |
| 695 /** | 688 /** |
| 696 * @param {!WebInspector.ContextMenu} contextMenu | 689 * @param {!WebInspector.ContextMenu} contextMenu |
| 697 */ | 690 */ |
| 698 _appendTabsToMenu: function(contextMenu) | 691 _appendTabsToMenu: function(contextMenu) |
| 699 { | 692 { |
| 700 for (var view of this._views.values()) { | 693 for (var view of this._views.values()) { |
| 701 var title = WebInspector.UIString(view.title()); | 694 var title = WebInspector.UIString(view.title()); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 this.appendView(view); | 914 this.appendView(view); |
| 922 }, | 915 }, |
| 923 | 916 |
| 924 __proto__: WebInspector.ViewManager._Location.prototype | 917 __proto__: WebInspector.ViewManager._Location.prototype |
| 925 } | 918 } |
| 926 | 919 |
| 927 /** | 920 /** |
| 928 * @type {!WebInspector.ViewManager} | 921 * @type {!WebInspector.ViewManager} |
| 929 */ | 922 */ |
| 930 WebInspector.viewManager; | 923 WebInspector.viewManager; |
| OLD | NEW |