| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 */ | 540 */ |
| 541 _persistPanelOrder: function(event) | 541 _persistPanelOrder: function(event) |
| 542 { | 542 { |
| 543 var tabs = /** @type {!Array.<!WebInspector.TabbedPaneTab>} */(event.dat
a); | 543 var tabs = /** @type {!Array.<!WebInspector.TabbedPaneTab>} */(event.dat
a); |
| 544 var tabOrders = this._tabOrderSetting.get(); | 544 var tabOrders = this._tabOrderSetting.get(); |
| 545 for (var i = 0; i < tabs.length; i++) | 545 for (var i = 0; i < tabs.length; i++) |
| 546 tabOrders[tabs[i].id] = (i + 1) * 10; | 546 tabOrders[tabs[i].id] = (i + 1) * 10; |
| 547 this._tabOrderSetting.set(tabOrders); | 547 this._tabOrderSetting.set(tabOrders); |
| 548 }, | 548 }, |
| 549 | 549 |
| 550 /** |
| 551 * @param {!WebInspector.SplitWidget} splitWidget |
| 552 */ |
| 553 setOwnerSplit: function(splitWidget) |
| 554 { |
| 555 this._ownerSplitWidget = splitWidget; |
| 556 }, |
| 557 |
| 558 minimize: function() |
| 559 { |
| 560 if (this._ownerSplitWidget) |
| 561 this._ownerSplitWidget.setSidebarMinimized(true); |
| 562 }, |
| 563 |
| 564 restore: function() |
| 565 { |
| 566 if (this._ownerSplitWidget) |
| 567 this._ownerSplitWidget.setSidebarMinimized(false); |
| 568 }, |
| 569 |
| 550 __proto__: WebInspector.VBox.prototype | 570 __proto__: WebInspector.VBox.prototype |
| 551 }; | 571 }; |
| 552 | 572 |
| 553 /** | 573 /** |
| 554 * @type {!WebInspector.InspectorView} | 574 * @type {!WebInspector.InspectorView} |
| 555 */ | 575 */ |
| 556 WebInspector.inspectorView; | 576 WebInspector.inspectorView; |
| 557 | 577 |
| 558 /** | 578 /** |
| 559 * @constructor | 579 * @constructor |
| (...skipping 12 matching lines...) Expand all Loading... |
| 572 */ | 592 */ |
| 573 handleAction: function(context, actionId) | 593 handleAction: function(context, actionId) |
| 574 { | 594 { |
| 575 if (WebInspector.inspectorView.drawerVisible()) | 595 if (WebInspector.inspectorView.drawerVisible()) |
| 576 WebInspector.inspectorView.closeDrawer(); | 596 WebInspector.inspectorView.closeDrawer(); |
| 577 else | 597 else |
| 578 WebInspector.inspectorView.showDrawer(); | 598 WebInspector.inspectorView.showDrawer(); |
| 579 return true; | 599 return true; |
| 580 } | 600 } |
| 581 } | 601 } |
| OLD | NEW |