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

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

Issue 22346003: DevTools: DOMStorage should notify the view about storage modifications instead of DOMStorageModel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments addressed! 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') | no next file » | 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 * @param {WebInspector.DOMStorage} domStorage 508 * @param {WebInspector.DOMStorage} domStorage
509 */ 509 */
510 _showDOMStorage: function(domStorage) 510 _showDOMStorage: function(domStorage)
511 { 511 {
512 if (!domStorage) 512 if (!domStorage)
513 return; 513 return;
514 514
515 var view; 515 var view;
516 view = this._domStorageViews.get(domStorage); 516 view = this._domStorageViews.get(domStorage);
517 if (!view) { 517 if (!view) {
518 view = new WebInspector.DOMStorageItemsView(domStorage, WebInspector .domStorageModel); 518 view = new WebInspector.DOMStorageItemsView(domStorage);
519 this._domStorageViews.put(domStorage, view); 519 this._domStorageViews.put(domStorage, view);
520 } 520 }
521 521
522 this._innerShowView(view); 522 this._innerShowView(view);
523 }, 523 },
524 524
525 /** 525 /**
526 * @param {!WebInspector.CookieTreeElement} treeElement 526 * @param {!WebInspector.CookieTreeElement} treeElement
527 * @param {string} cookieDomain 527 * @param {string} cookieDomain
528 */ 528 */
(...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 */ 2365 */
2366 _lastTreeElement: function() 2366 _lastTreeElement: function()
2367 { 2367 {
2368 var treeElement = this._root; 2368 var treeElement = this._root;
2369 var nextTreeElement; 2369 var nextTreeElement;
2370 while (nextTreeElement = this._traverseNext(treeElement)) 2370 while (nextTreeElement = this._traverseNext(treeElement))
2371 treeElement = nextTreeElement; 2371 treeElement = nextTreeElement;
2372 return treeElement; 2372 return treeElement;
2373 } 2373 }
2374 } 2374 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/DOMStorageItemsView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698