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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/elements/ElementsBreadcrumbs.js

Issue 2819183002: [DevTools] Consolidate overlay-related functionality in Overlay domain (Closed)
Patch Set: rebased bad merge Created 3 years, 7 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Elements.ElementsBreadcrumbs = class extends UI.HBox { 7 Elements.ElementsBreadcrumbs = class extends UI.HBox {
8 constructor() { 8 constructor() {
9 super(true); 9 super(true);
10 this.registerRequiredCSS('elements/breadcrumbs.css'); 10 this.registerRequiredCSS('elements/breadcrumbs.css');
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 _mouseMovedInCrumbs(event) { 49 _mouseMovedInCrumbs(event) {
50 var nodeUnderMouse = event.target; 50 var nodeUnderMouse = event.target;
51 var crumbElement = nodeUnderMouse.enclosingNodeOrSelfWithClass('crumb'); 51 var crumbElement = nodeUnderMouse.enclosingNodeOrSelfWithClass('crumb');
52 var node = /** @type {?SDK.DOMNode} */ (crumbElement ? crumbElement[this._no deSymbol] : null); 52 var node = /** @type {?SDK.DOMNode} */ (crumbElement ? crumbElement[this._no deSymbol] : null);
53 if (node) 53 if (node)
54 node.highlight(); 54 node.highlight();
55 } 55 }
56 56
57 _mouseMovedOutOfCrumbs(event) { 57 _mouseMovedOutOfCrumbs(event) {
58 if (this._currentDOMNode) 58 if (this._currentDOMNode)
59 SDK.DOMModel.hideDOMNodeHighlight(); 59 SDK.OverlayModel.hideDOMNodeHighlight();
60 } 60 }
61 61
62 62
63 /** 63 /**
64 * @param {!Event} event 64 * @param {!Event} event
65 * @this {Elements.ElementsBreadcrumbs} 65 * @this {Elements.ElementsBreadcrumbs}
66 */ 66 */
67 _onClickCrumb(event) { 67 _onClickCrumb(event) {
68 event.preventDefault(); 68 event.preventDefault();
69 var crumb = /** @type {!Element} */ (event.currentTarget); 69 var crumb = /** @type {!Element} */ (event.currentTarget);
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 // Collapse the selected crumb as a last resort. Pass true to prevent coales cing. 435 // Collapse the selected crumb as a last resort. Pass true to prevent coales cing.
436 collapse(selectedCrumb, true); 436 collapse(selectedCrumb, true);
437 } 437 }
438 }; 438 };
439 439
440 /** @enum {symbol} */ 440 /** @enum {symbol} */
441 Elements.ElementsBreadcrumbs.Events = { 441 Elements.ElementsBreadcrumbs.Events = {
442 NodeSelected: Symbol('NodeSelected') 442 NodeSelected: Symbol('NodeSelected')
443 }; 443 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698