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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/View.js

Issue 2353033004: [DevTools] Expose left and right toolbar in TabbedPane. (Closed)
Patch Set: review comment Created 4 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
OLDNEW
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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 tabbedPane: function() 607 tabbedPane: function()
608 { 608 {
609 return this._tabbedPane; 609 return this._tabbedPane;
610 }, 610 },
611 611
612 /** 612 /**
613 * @override 613 * @override
614 */ 614 */
615 enableMoreTabsButton: function() 615 enableMoreTabsButton: function()
616 { 616 {
617 var toolbar = new WebInspector.Toolbar("drawer-toolbar"); 617 this._tabbedPane.leftToolbar().appendToolbarItem(new WebInspector.Toolba rMenuButton(this._appendTabsToMenu.bind(this)));
618 toolbar.appendToolbarItem(new WebInspector.ToolbarMenuButton(this._appen dTabsToMenu.bind(this)));
619 this._tabbedPane.insertBeforeTabStrip(toolbar.element);
620 this._tabbedPane.disableOverflowMenu(); 618 this._tabbedPane.disableOverflowMenu();
621 }, 619 },
622 620
623 /** 621 /**
624 * @override 622 * @override
625 * @param {string} locationName 623 * @param {string} locationName
626 */ 624 */
627 appendApplicableItems: function(locationName) 625 appendApplicableItems: function(locationName)
628 { 626 {
629 for (var view of this._manager._viewsForLocation(locationName)) { 627 for (var view of this._manager._viewsForLocation(locationName)) {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 this.appendView(view); 812 this.appendView(view);
815 }, 813 },
816 814
817 __proto__: WebInspector.ViewManager._Location.prototype 815 __proto__: WebInspector.ViewManager._Location.prototype
818 } 816 }
819 817
820 /** 818 /**
821 * @type {!WebInspector.ViewManager} 819 * @type {!WebInspector.ViewManager}
822 */ 820 */
823 WebInspector.viewManager; 821 WebInspector.viewManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698