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

Side by Side Diff: Source/devtools/front_end/components/DOMPresentationUtils.js

Issue 391083003: DevTools: remove Node.reveal() and RemoteOject.reveal() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 4 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
5 * Copyright (C) 2009 Joseph Pecoraro 5 * Copyright (C) 2009 Joseph Pecoraro
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 */ 96 */
97 WebInspector.DOMPresentationUtils.linkifyNodeReference = function(node) 97 WebInspector.DOMPresentationUtils.linkifyNodeReference = function(node)
98 { 98 {
99 if (!node) 99 if (!node)
100 return document.createTextNode(WebInspector.UIString("<node>")); 100 return document.createTextNode(WebInspector.UIString("<node>"));
101 101
102 var link = document.createElement("span"); 102 var link = document.createElement("span");
103 link.className = "node-link"; 103 link.className = "node-link";
104 WebInspector.DOMPresentationUtils.decorateNodeLabel(node, link); 104 WebInspector.DOMPresentationUtils.decorateNodeLabel(node, link);
105 105
106 link.addEventListener("click", node.reveal.bind(node), false); 106 link.addEventListener("click", WebInspector.Revealer.reveal.bind(WebInspecto r.Revealer, node, undefined), false);
107 link.addEventListener("mouseover", node.highlight.bind(node, undefined, unde fined), false); 107 link.addEventListener("mouseover", node.highlight.bind(node, undefined, unde fined), false);
108 link.addEventListener("mouseout", node.domModel().hideDOMNodeHighlight.bind( node.domModel()), false); 108 link.addEventListener("mouseout", node.domModel().hideDOMNodeHighlight.bind( node.domModel()), false);
109 109
110 return link; 110 return link;
111 } 111 }
112 112
113 /** 113 /**
114 * @param {string} imageURL 114 * @param {string} imageURL
115 * @param {!WebInspector.Target} target 115 * @param {!WebInspector.Target} target
116 * @param {boolean} showDimensions 116 * @param {boolean} showDimensions
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 509
510 WebInspector.DOMNodePathStep.prototype = { 510 WebInspector.DOMNodePathStep.prototype = {
511 /** 511 /**
512 * @return {string} 512 * @return {string}
513 */ 513 */
514 toString: function() 514 toString: function()
515 { 515 {
516 return this.value; 516 return this.value;
517 } 517 }
518 } 518 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ScreencastView.js ('k') | Source/devtools/front_end/elements/ElementsPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698