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

Side by Side Diff: Source/devtools/front_end/elements/ElementsPanel.js

Issue 344443003: DevTools: Code fixes for the Closure compiler roll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 6 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
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 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 var remoteObject = /** @type {!WebInspector.RemoteObject} */ (object ); 1223 var remoteObject = /** @type {!WebInspector.RemoteObject} */ (object );
1224 if (remoteObject.isNode()) 1224 if (remoteObject.isNode())
1225 commandCallback = remoteObject.reveal.bind(remoteObject); 1225 commandCallback = remoteObject.reveal.bind(remoteObject);
1226 } else if (object instanceof WebInspector.DOMNode) { 1226 } else if (object instanceof WebInspector.DOMNode) {
1227 var domNode = /** @type {!WebInspector.DOMNode} */ (object); 1227 var domNode = /** @type {!WebInspector.DOMNode} */ (object);
1228 commandCallback = domNode.reveal.bind(domNode); 1228 commandCallback = domNode.reveal.bind(domNode);
1229 } 1229 }
1230 if (!commandCallback) 1230 if (!commandCallback)
1231 return; 1231 return;
1232 // Skip adding "Reveal..." menu item for our own tree outline. 1232 // Skip adding "Reveal..." menu item for our own tree outline.
1233 if (this.element.isAncestor(event.target)) 1233 if (this.element.isAncestor(/** @type {!Node} */ (event.target)))
1234 return; 1234 return;
1235 contextMenu.appendItem(WebInspector.useLowerCaseMenuTitles() ? "Reveal i n Elements panel" : "Reveal in Elements Panel", commandCallback); 1235 contextMenu.appendItem(WebInspector.useLowerCaseMenuTitles() ? "Reveal i n Elements panel" : "Reveal in Elements Panel", commandCallback);
1236 }, 1236 },
1237 1237
1238 _sidebarContextMenuEventFired: function(event) 1238 _sidebarContextMenuEventFired: function(event)
1239 { 1239 {
1240 var contextMenu = new WebInspector.ContextMenu(event); 1240 var contextMenu = new WebInspector.ContextMenu(event);
1241 contextMenu.show(); 1241 contextMenu.show();
1242 }, 1242 },
1243 1243
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 /** 1471 /**
1472 * @suppressReceiverCheck 1472 * @suppressReceiverCheck
1473 * @this {Element} 1473 * @this {Element}
1474 */ 1474 */
1475 function parentElement() 1475 function parentElement()
1476 { 1476 {
1477 return this.parentElement; 1477 return this.parentElement;
1478 } 1478 }
1479 } 1479 }
1480 } 1480 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components/InspectorView.js ('k') | Source/devtools/front_end/extensions/ExtensionAPI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698