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

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

Issue 21163003: DevTools: Implement undo, redo operations for the DOMStorage views. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing after arv's changes for ExceptionState Created 7 years, 4 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
« no previous file with comments | « Source/devtools/front_end/DOMStorageItemsView.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 { 128 {
129 return [this.storageViewStatusBarItemsContainer]; 129 return [this.storageViewStatusBarItemsContainer];
130 }, 130 },
131 131
132 wasShown: function() 132 wasShown: function()
133 { 133 {
134 WebInspector.Panel.prototype.wasShown.call(this); 134 WebInspector.Panel.prototype.wasShown.call(this);
135 this._initialize(); 135 this._initialize();
136 }, 136 },
137 137
138 /**
139 * @param {KeyboardEvent} event
140 */
141 handleShortcut: function(event)
142 {
143 if (this.visibleView && typeof this.visibleView.handleShortcut === "func tion")
144 return this.visibleView.handleShortcut(event);
145 },
146
138 _initialize: function() 147 _initialize: function()
139 { 148 {
140 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL oaded) { 149 if (!this._initialized && this.isShowing() && this._cachedResourcesWereL oaded) {
141 this._populateResourceTree(); 150 this._populateResourceTree();
142 this._populateDOMStorageTree(); 151 this._populateDOMStorageTree();
143 this._populateApplicationCacheTree(); 152 this._populateApplicationCacheTree();
144 this._initDefaultSelection(); 153 this._initDefaultSelection();
145 this._initialized = true; 154 this._initialized = true;
146 } 155 }
147 }, 156 },
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 */ 2365 */
2357 _lastTreeElement: function() 2366 _lastTreeElement: function()
2358 { 2367 {
2359 var treeElement = this._root; 2368 var treeElement = this._root;
2360 var nextTreeElement; 2369 var nextTreeElement;
2361 while (nextTreeElement = this._traverseNext(treeElement)) 2370 while (nextTreeElement = this._traverseNext(treeElement))
2362 treeElement = nextTreeElement; 2371 treeElement = nextTreeElement;
2363 return treeElement; 2372 return treeElement;
2364 } 2373 }
2365 } 2374 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/DOMStorageItemsView.js ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698