| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Nokia Inc. All rights reserved. | 2 * Copyright (C) 2008 Nokia Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 this.refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString(
"Refresh"), "refresh-storage-status-bar-item"); | 44 this.refreshButton = new WebInspector.StatusBarButton(WebInspector.UIString(
"Refresh"), "refresh-storage-status-bar-item"); |
| 45 this.refreshButton.addEventListener("click", this._refreshButtonClicked, thi
s); | 45 this.refreshButton.addEventListener("click", this._refreshButtonClicked, thi
s); |
| 46 | 46 |
| 47 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emsCleared, this._domStorageItemsCleared, this); | 47 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emsCleared, this._domStorageItemsCleared, this); |
| 48 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emRemoved, this._domStorageItemRemoved, this); | 48 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emRemoved, this._domStorageItemRemoved, this); |
| 49 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emAdded, this._domStorageItemAdded, this); | 49 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emAdded, this._domStorageItemAdded, this); |
| 50 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emUpdated, this._domStorageItemUpdated, this); | 50 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emUpdated, this._domStorageItemUpdated, this); |
| 51 } | 51 } |
| 52 | 52 |
| 53 WebInspector.DOMStorageItemsView.prototype = { | 53 WebInspector.DOMStorageItemsView.prototype = { |
| 54 get statusBarItems() | 54 /** |
| 55 * @return {!Array.<!WebInspector.StatusBarItem>} |
| 56 */ |
| 57 statusBarItems: function() |
| 55 { | 58 { |
| 56 return [this.refreshButton.element, this.deleteButton.element]; | 59 return [this.refreshButton, this.deleteButton]; |
| 57 }, | 60 }, |
| 58 | 61 |
| 59 wasShown: function() | 62 wasShown: function() |
| 60 { | 63 { |
| 61 this._update(); | 64 this._update(); |
| 62 }, | 65 }, |
| 63 | 66 |
| 64 willHide: function() | 67 willHide: function() |
| 65 { | 68 { |
| 66 this.deleteButton.setVisible(false); | 69 this.deleteButton.setVisible(false); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 { | 255 { |
| 253 if (!node || node.isCreationNode) | 256 if (!node || node.isCreationNode) |
| 254 return; | 257 return; |
| 255 | 258 |
| 256 if (this.domStorage) | 259 if (this.domStorage) |
| 257 this.domStorage.removeItem(node.data.key); | 260 this.domStorage.removeItem(node.data.key); |
| 258 }, | 261 }, |
| 259 | 262 |
| 260 __proto__: WebInspector.VBox.prototype | 263 __proto__: WebInspector.VBox.prototype |
| 261 } | 264 } |
| OLD | NEW |