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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js

Issue 2174863003: DevTools: traverse widget hierarchy to reveal views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 node.target().domdebuggerAgent().removeDOMBreakpoint(node.id, type); 341 node.target().domdebuggerAgent().removeDOMBreakpoint(node.id, type);
342 this._saveBreakpoints(); 342 this._saveBreakpoints();
343 }, 343 },
344 344
345 highlightBreakpoint: function(auxData) 345 highlightBreakpoint: function(auxData)
346 { 346 {
347 var breakpointId = this._createBreakpointId(auxData.nodeId, auxData.type ); 347 var breakpointId = this._createBreakpointId(auxData.nodeId, auxData.type );
348 var element = this._breakpointElements[breakpointId]; 348 var element = this._breakpointElements[breakpointId];
349 if (!element) 349 if (!element)
350 return; 350 return;
351 this.requestReveal(); 351 this.revealWidget();
352 element.classList.add("breakpoint-hit"); 352 element.classList.add("breakpoint-hit");
353 this._highlightedElement = element; 353 this._highlightedElement = element;
354 }, 354 },
355 355
356 clearBreakpointHighlight: function() 356 clearBreakpointHighlight: function()
357 { 357 {
358 if (this._highlightedElement) { 358 if (this._highlightedElement) {
359 this._highlightedElement.classList.remove("breakpoint-hit"); 359 this._highlightedElement.classList.remove("breakpoint-hit");
360 delete this._highlightedElement; 360 delete this._highlightedElement;
361 } 361 }
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 this._wrappedPane.show(this.element); 467 this._wrappedPane.show(this.element);
468 }, 468 },
469 469
470 __proto__: WebInspector.View.prototype 470 __proto__: WebInspector.View.prototype
471 } 471 }
472 472
473 /** 473 /**
474 * @type {!WebInspector.DOMBreakpointsSidebarPane} 474 * @type {!WebInspector.DOMBreakpointsSidebarPane}
475 */ 475 */
476 WebInspector.domBreakpointsSidebarPane; 476 WebInspector.domBreakpointsSidebarPane;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698