| 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 29 matching lines...) Expand all Loading... |
| 40 this.deleteButton.setVisible(false); | 40 this.deleteButton.setVisible(false); |
| 41 this.deleteButton.addEventListener("click", this._deleteButtonClicked, this)
; | 41 this.deleteButton.addEventListener("click", this._deleteButtonClicked, this)
; |
| 42 | 42 |
| 43 this.refreshButton = new WebInspector.ToolbarButton(WebInspector.UIString("R
efresh"), "refresh-toolbar-item"); | 43 this.refreshButton = new WebInspector.ToolbarButton(WebInspector.UIString("R
efresh"), "refresh-toolbar-item"); |
| 44 this.refreshButton.addEventListener("click", this._refreshButtonClicked, thi
s); | 44 this.refreshButton.addEventListener("click", this._refreshButtonClicked, thi
s); |
| 45 | 45 |
| 46 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emsCleared, this._domStorageItemsCleared, this); | 46 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emsCleared, this._domStorageItemsCleared, this); |
| 47 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emRemoved, this._domStorageItemRemoved, this); | 47 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emRemoved, this._domStorageItemRemoved, this); |
| 48 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emAdded, this._domStorageItemAdded, this); | 48 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emAdded, this._domStorageItemAdded, this); |
| 49 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emUpdated, this._domStorageItemUpdated, this); | 49 this.domStorage.addEventListener(WebInspector.DOMStorage.Events.DOMStorageIt
emUpdated, this._domStorageItemUpdated, this); |
| 50 } | 50 }; |
| 51 | 51 |
| 52 WebInspector.DOMStorageItemsView.prototype = { | 52 WebInspector.DOMStorageItemsView.prototype = { |
| 53 /** | 53 /** |
| 54 * @override | 54 * @override |
| 55 * @return {!Array.<!WebInspector.ToolbarItem>} | 55 * @return {!Array.<!WebInspector.ToolbarItem>} |
| 56 */ | 56 */ |
| 57 syncToolbarItems: function() | 57 syncToolbarItems: function() |
| 58 { | 58 { |
| 59 return [this.refreshButton, this.deleteButton]; | 59 return [this.refreshButton, this.deleteButton]; |
| 60 }, | 60 }, |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 _deleteCallback: function(node) | 253 _deleteCallback: function(node) |
| 254 { | 254 { |
| 255 if (!node || node.isCreationNode) | 255 if (!node || node.isCreationNode) |
| 256 return; | 256 return; |
| 257 | 257 |
| 258 if (this.domStorage) | 258 if (this.domStorage) |
| 259 this.domStorage.removeItem(node.data.key); | 259 this.domStorage.removeItem(node.data.key); |
| 260 }, | 260 }, |
| 261 | 261 |
| 262 __proto__: WebInspector.SimpleView.prototype | 262 __proto__: WebInspector.SimpleView.prototype |
| 263 } | 263 }; |
| OLD | NEW |