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

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

Issue 661103002: DevTools: make web component anchor handling go the generic route. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 }, 763 },
764 764
765 showView: function(view) 765 showView: function(view)
766 { 766 {
767 if (view) 767 if (view)
768 this.showResource(view.resource); 768 this.showResource(view.resource);
769 }, 769 },
770 770
771 _onmousemove: function(event) 771 _onmousemove: function(event)
772 { 772 {
773 var nodeUnderMouse = event.elementFromPoint(); 773 var nodeUnderMouse = event.deepElementFromPoint();
774 if (!nodeUnderMouse) 774 if (!nodeUnderMouse)
775 return; 775 return;
776 776
777 var listNode = nodeUnderMouse.enclosingNodeOrSelfWithNodeName("li"); 777 var listNode = nodeUnderMouse.enclosingNodeOrSelfWithNodeName("li");
778 if (!listNode) 778 if (!listNode)
779 return; 779 return;
780 780
781 var element = listNode.treeElement; 781 var element = listNode.treeElement;
782 if (this._previousHoveredElement === element) 782 if (this._previousHoveredElement === element)
783 return; 783 return;
(...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 2180
2181 WebInspector.ResourcesPanelFactory.prototype = { 2181 WebInspector.ResourcesPanelFactory.prototype = {
2182 /** 2182 /**
2183 * @return {!WebInspector.Panel} 2183 * @return {!WebInspector.Panel}
2184 */ 2184 */
2185 createPanel: function() 2185 createPanel: function()
2186 { 2186 {
2187 return WebInspector.ResourcesPanel._instance(); 2187 return WebInspector.ResourcesPanel._instance();
2188 } 2188 }
2189 } 2189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698