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

Side by Side Diff: Source/devtools/front_end/ScreencastView.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
« no previous file with comments | « no previous file | Source/devtools/front_end/components/DOMPresentationUtils.js » ('j') | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 * @param {?WebInspector.DOMNode} node 260 * @param {?WebInspector.DOMNode} node
261 * @this {WebInspector.ScreencastView} 261 * @this {WebInspector.ScreencastView}
262 */ 262 */
263 function callback(node) 263 function callback(node)
264 { 264 {
265 if (!node) 265 if (!node)
266 return; 266 return;
267 if (event.type === "mousemove") 267 if (event.type === "mousemove")
268 this.highlightDOMNode(node, this._inspectModeConfig); 268 this.highlightDOMNode(node, this._inspectModeConfig);
269 else if (event.type === "click") 269 else if (event.type === "click")
270 node.reveal(); 270 WebInspector.Revealer.reveal(node);
271 } 271 }
272 }, 272 },
273 273
274 /** 274 /**
275 * @param {?Event} event 275 * @param {?Event} event
276 */ 276 */
277 _handleKeyEvent: function(event) 277 _handleKeyEvent: function(event)
278 { 278 {
279 if (this._isGlassPaneActive()) { 279 if (this._isGlassPaneActive()) {
280 event.consume(); 280 event.consume();
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 return; 998 return;
999 this._maxDisplayedProgress = progress; 999 this._maxDisplayedProgress = progress;
1000 this._displayProgress(progress); 1000 this._displayProgress(progress);
1001 }, 1001 },
1002 1002
1003 _displayProgress: function(progress) 1003 _displayProgress: function(progress)
1004 { 1004 {
1005 this._element.style.width = (100 * progress) + "%"; 1005 this._element.style.width = (100 * progress) + "%";
1006 } 1006 }
1007 }; 1007 };
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/components/DOMPresentationUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698