| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 if (this.visibleView === view) | 632 if (this.visibleView === view) |
| 633 return; | 633 return; |
| 634 | 634 |
| 635 if (this.visibleView) | 635 if (this.visibleView) |
| 636 this.visibleView.detach(); | 636 this.visibleView.detach(); |
| 637 | 637 |
| 638 view.show(this.storageViews); | 638 view.show(this.storageViews); |
| 639 this.visibleView = view; | 639 this.visibleView = view; |
| 640 | 640 |
| 641 this._storageViewToolbar.removeToolbarItems(); | 641 this._storageViewToolbar.removeToolbarItems(); |
| 642 var toolbarItems = view instanceof UI.SimpleView ? view.syncToolbarItems() :
null; | 642 var toolbarItems = (view instanceof UI.SimpleView && view.syncToolbarItems()
) || []; |
| 643 for (var i = 0; toolbarItems && i < toolbarItems.length; ++i) | 643 for (var i = 0; i < toolbarItems.length; ++i) |
| 644 this._storageViewToolbar.appendToolbarItem(toolbarItems[i]); | 644 this._storageViewToolbar.appendToolbarItem(toolbarItems[i]); |
| 645 this._storageViewToolbar.setVisible(toolbarItems.length > 0); |
| 645 } | 646 } |
| 646 | 647 |
| 647 closeVisibleView() { | 648 closeVisibleView() { |
| 648 if (!this.visibleView) | 649 if (!this.visibleView) |
| 649 return; | 650 return; |
| 650 this.visibleView.detach(); | 651 this.visibleView.detach(); |
| 651 delete this.visibleView; | 652 delete this.visibleView; |
| 652 } | 653 } |
| 653 | 654 |
| 654 _updateDatabaseTables(event) { | 655 _updateDatabaseTables(event) { |
| (...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2061 | 2062 |
| 2062 this.element.classList.add('storage-view'); | 2063 this.element.classList.add('storage-view'); |
| 2063 this._emptyWidget = new UI.EmptyWidget(''); | 2064 this._emptyWidget = new UI.EmptyWidget(''); |
| 2064 this._emptyWidget.show(this.element); | 2065 this._emptyWidget.show(this.element); |
| 2065 } | 2066 } |
| 2066 | 2067 |
| 2067 setText(text) { | 2068 setText(text) { |
| 2068 this._emptyWidget.text = text; | 2069 this._emptyWidget.text = text; |
| 2069 } | 2070 } |
| 2070 }; | 2071 }; |
| OLD | NEW |