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

Side by Side Diff: Source/devtools/front_end/ResourcesPanel.js

Issue 14877010: DevTools: DOMStorage undo/redo feature (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months 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
OLDNEW
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 { 122 {
123 return [this.storageViewStatusBarItemsContainer]; 123 return [this.storageViewStatusBarItemsContainer];
124 }, 124 },
125 125
126 wasShown: function() 126 wasShown: function()
127 { 127 {
128 WebInspector.Panel.prototype.wasShown.call(this); 128 WebInspector.Panel.prototype.wasShown.call(this);
129 this._initialize(); 129 this._initialize();
130 }, 130 },
131 131
132 /**
133 * @param {WebInspector.Event} event
134 */
135 handleShortcut: function(event)
136 {
137 if (this.visibleView && typeof this.visibleView.handleShortcut === "func tion")
138 return this.visibleView.handleShortcut(event);
139 },
140
132 _initialize: function() 141 _initialize: function()
133 { 142 {
134 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL oaded) { 143 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL oaded) {
135 this._populateResourceTree(); 144 this._populateResourceTree();
136 this._populateDOMStorageTree(); 145 this._populateDOMStorageTree();
137 this._populateApplicationCacheTree(); 146 this._populateApplicationCacheTree();
138 this._initDefaultSelection(); 147 this._initDefaultSelection();
139 this._initialized = true; 148 this._initialized = true;
140 } 149 }
141 }, 150 },
(...skipping 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 */ 2314 */
2306 _lastTreeElement: function() 2315 _lastTreeElement: function()
2307 { 2316 {
2308 var treeElement = this._root; 2317 var treeElement = this._root;
2309 var nextTreeElement; 2318 var nextTreeElement;
2310 while (nextTreeElement = this._traverseNext(treeElement)) 2319 while (nextTreeElement = this._traverseNext(treeElement))
2311 treeElement = nextTreeElement; 2320 treeElement = nextTreeElement;
2312 return treeElement; 2321 return treeElement;
2313 } 2322 }
2314 } 2323 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698