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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 /** 845 /**
846 * @param {boolean} allow 846 * @param {boolean} allow
847 * @param {boolean=} automatic 847 * @param {boolean=} automatic
848 */ 848 */
849 setAllowTabReorder: function(allow, automatic) 849 setAllowTabReorder: function(allow, automatic)
850 { 850 {
851 this._allowTabReorder = allow; 851 this._allowTabReorder = allow;
852 this._automaticReorder = automatic; 852 this._automaticReorder = automatic;
853 }, 853 },
854 854
855 /**
856 * @override
857 * @param {!WebInspector.Widget} child
858 * @return {boolean}
859 */
860 revealChild: function(child)
861 {
862 if (this._currentTabLocked)
863 return false;
864
865 for (var tabId of this.tabIds()) {
866 if (this.tabView(tabId) === child) {
867 this.selectTab(tabId);
868 return true;
869 }
870 }
871 return false;
872 },
873
874 __proto__: WebInspector.VBox.prototype 855 __proto__: WebInspector.VBox.prototype
875 } 856 }
876 857
877 /** 858 /**
878 * @constructor 859 * @constructor
879 * @param {!WebInspector.TabbedPane} tabbedPane 860 * @param {!WebInspector.TabbedPane} tabbedPane
880 * @param {string} id 861 * @param {string} id
881 * @param {string} title 862 * @param {string} title
882 * @param {boolean} closeable 863 * @param {boolean} closeable
883 * @param {!WebInspector.Widget} view 864 * @param {!WebInspector.Widget} view
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 * @param {!Array.<string>} ids 1238 * @param {!Array.<string>} ids
1258 */ 1239 */
1259 closeTabs: function(tabbedPane, ids) { }, 1240 closeTabs: function(tabbedPane, ids) { },
1260 1241
1261 /** 1242 /**
1262 * @param {string} tabId 1243 * @param {string} tabId
1263 * @param {!WebInspector.ContextMenu} contextMenu 1244 * @param {!WebInspector.ContextMenu} contextMenu
1264 */ 1245 */
1265 onContextMenu: function(tabId, contextMenu) { } 1246 onContextMenu: function(tabId, contextMenu) { }
1266 } 1247 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698