| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 this._refreshButton.setVisible(true); | 53 this._refreshButton.setVisible(true); |
| 54 this._refreshButton.addEventListener("click", this._refresh, this); | 54 this._refreshButton.addEventListener("click", this._refresh, this); |
| 55 | 55 |
| 56 this._deleteButton = new WebInspector.StatusBarButton(WebInspector.UIString(
"Delete"), "delete-storage-status-bar-item"); | 56 this._deleteButton = new WebInspector.StatusBarButton(WebInspector.UIString(
"Delete"), "delete-storage-status-bar-item"); |
| 57 this._deleteButton.setVisible(true); | 57 this._deleteButton.setVisible(true); |
| 58 this._deleteButton.addEventListener("click", this._confirmDelete, this); | 58 this._deleteButton.addEventListener("click", this._confirmDelete, this); |
| 59 } | 59 } |
| 60 | 60 |
| 61 WebInspector.FileSystemView.prototype = { | 61 WebInspector.FileSystemView.prototype = { |
| 62 /** | 62 /** |
| 63 * @type {!Array.<!Element>} | 63 * @return {!Array.<!WebInspector.StatusBarItem>} |
| 64 */ | 64 */ |
| 65 get statusBarItems() | 65 statusBarItems: function() |
| 66 { | 66 { |
| 67 return [this._refreshButton.element, this._deleteButton.element]; | 67 return [this._refreshButton, this._deleteButton]; |
| 68 }, | 68 }, |
| 69 | 69 |
| 70 /** | 70 /** |
| 71 * @type {!WebInspector.View} | 71 * @type {!WebInspector.View} |
| 72 */ | 72 */ |
| 73 get visibleView() | 73 get visibleView() |
| 74 { | 74 { |
| 75 return this._visibleView; | 75 return this._visibleView; |
| 76 }, | 76 }, |
| 77 | 77 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 }, | 234 }, |
| 235 | 235 |
| 236 _deletionCompleted: function() | 236 _deletionCompleted: function() |
| 237 { | 237 { |
| 238 if (this._entry != this._entry.fileSystem.root) | 238 if (this._entry != this._entry.fileSystem.root) |
| 239 this.parent.refresh(); | 239 this.parent.refresh(); |
| 240 }, | 240 }, |
| 241 | 241 |
| 242 __proto__: TreeElement.prototype | 242 __proto__: TreeElement.prototype |
| 243 } | 243 } |
| OLD | NEW |