| 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 }, | 536 }, |
| 537 | 537 |
| 538 /** | 538 /** |
| 539 * @param {!WebInspector.Event} event | 539 * @param {!WebInspector.Event} event |
| 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 __proto__: WebInspector.VBox.prototype | 550 __proto__: WebInspector.VBox.prototype |
| 551 }; | 551 }; |
| 552 | 552 |
| 553 /** | 553 /** |
| 554 * @type {!WebInspector.InspectorView} | 554 * @type {!WebInspector.InspectorView} |
| 555 */ | 555 */ |
| 556 WebInspector.inspectorView; | 556 WebInspector.inspectorView; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 572 */ | 572 */ |
| 573 handleAction: function(context, actionId) | 573 handleAction: function(context, actionId) |
| 574 { | 574 { |
| 575 if (WebInspector.inspectorView.drawerVisible()) | 575 if (WebInspector.inspectorView.drawerVisible()) |
| 576 WebInspector.inspectorView.closeDrawer(); | 576 WebInspector.inspectorView.closeDrawer(); |
| 577 else | 577 else |
| 578 WebInspector.inspectorView.showDrawer(); | 578 WebInspector.inspectorView.showDrawer(); |
| 579 return true; | 579 return true; |
| 580 } | 580 } |
| 581 } | 581 } |
| OLD | NEW |