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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/resources/ResourcesPanel.js

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 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
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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 if (this.visibleView === view) 655 if (this.visibleView === view)
656 return; 656 return;
657 657
658 if (this.visibleView) 658 if (this.visibleView)
659 this.visibleView.detach(); 659 this.visibleView.detach();
660 660
661 view.show(this.storageViews); 661 view.show(this.storageViews);
662 this.visibleView = view; 662 this.visibleView = view;
663 663
664 this._storageViewToolbar.removeToolbarItems(); 664 this._storageViewToolbar.removeToolbarItems();
665 var toolbarItems = view.toolbarItems ? view.toolbarItems() : null; 665 var toolbarItems = view instanceof WebInspector.SimpleView ? view.syncTo olbarItems() : null;
666 for (var i = 0; toolbarItems && i < toolbarItems.length; ++i) 666 for (var i = 0; toolbarItems && i < toolbarItems.length; ++i)
667 this._storageViewToolbar.appendToolbarItem(toolbarItems[i]); 667 this._storageViewToolbar.appendToolbarItem(toolbarItems[i]);
668 }, 668 },
669 669
670 closeVisibleView: function() 670 closeVisibleView: function()
671 { 671 {
672 if (!this.visibleView) 672 if (!this.visibleView)
673 return; 673 return;
674 this.visibleView.detach(); 674 this.visibleView.detach();
675 delete this.visibleView; 675 delete this.visibleView;
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2207 WebInspector.inspectorView.setCurrentPanel(WebInspector.ResourcesPanel._inst ance()); 2207 WebInspector.inspectorView.setCurrentPanel(WebInspector.ResourcesPanel._inst ance());
2208 } 2208 }
2209 2209
2210 /** 2210 /**
2211 * @return {!WebInspector.ResourcesPanel} 2211 * @return {!WebInspector.ResourcesPanel}
2212 */ 2212 */
2213 WebInspector.ResourcesPanel._instance = function() 2213 WebInspector.ResourcesPanel._instance = function()
2214 { 2214 {
2215 return /** @type {!WebInspector.ResourcesPanel} */ (self.runtime.sharedInsta nce(WebInspector.ResourcesPanel)); 2215 return /** @type {!WebInspector.ResourcesPanel} */ (self.runtime.sharedInsta nce(WebInspector.ResourcesPanel));
2216 } 2216 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698