Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: Source/devtools/front_end/resources/DOMStorageItemsView.js

Issue 720223002: DevTools: only allow status bar items in status bars. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/resources/CookieItemsView.js ('k') | Source/devtools/front_end/resources/DatabaseQueryView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698