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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.HBox} 7 * @extends {WebInspector.HBox}
8 */ 8 */
9 WebInspector.ElementsBreadcrumbs = function() 9 WebInspector.ElementsBreadcrumbs = function()
10 { 10 {
11 WebInspector.HBox.call(this, true); 11 WebInspector.HBox.call(this, true);
12 this.registerRequiredCSS("elements/breadcrumbs.css"); 12 this.registerRequiredCSS("elements/breadcrumbs.css");
13 13
14 this.crumbsElement = this.contentElement.createChild("div", "crumbs"); 14 this.crumbsElement = this.contentElement.createChild("div", "crumbs");
15 this.crumbsElement.addEventListener("mousemove", this._mouseMovedInCrumbs.bi nd(this), false); 15 this.crumbsElement.addEventListener("mousemove", this._mouseMovedInCrumbs.bi nd(this), false);
16 this.crumbsElement.addEventListener("mouseleave", this._mouseMovedOutOfCrumb s.bind(this), false); 16 this.crumbsElement.addEventListener("mouseleave", this._mouseMovedOutOfCrumb s.bind(this), false);
17 this._nodeSymbol = Symbol("node"); 17 this._nodeSymbol = Symbol("node");
18 } 18 };
19 19
20 /** @enum {symbol} */ 20 /** @enum {symbol} */
21 WebInspector.ElementsBreadcrumbs.Events = { 21 WebInspector.ElementsBreadcrumbs.Events = {
22 NodeSelected: Symbol("NodeSelected") 22 NodeSelected: Symbol("NodeSelected")
23 } 23 };
24 24
25 WebInspector.ElementsBreadcrumbs.prototype = { 25 WebInspector.ElementsBreadcrumbs.prototype = {
26 wasShown: function() 26 wasShown: function()
27 { 27 {
28 this.update(); 28 this.update();
29 }, 29 },
30 30
31 /** 31 /**
32 * @param {!Array.<!WebInspector.DOMNode>} nodes 32 * @param {!Array.<!WebInspector.DOMNode>} nodes
33 */ 33 */
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Compact the selected crumb. 426 // Compact the selected crumb.
427 compact(selectedCrumb); 427 compact(selectedCrumb);
428 if (crumbsAreSmallerThanContainer()) 428 if (crumbsAreSmallerThanContainer())
429 return; 429 return;
430 430
431 // Collapse the selected crumb as a last resort. Pass true to prevent co alescing. 431 // Collapse the selected crumb as a last resort. Pass true to prevent co alescing.
432 collapse(selectedCrumb, true); 432 collapse(selectedCrumb, true);
433 }, 433 },
434 434
435 __proto__: WebInspector.HBox.prototype 435 __proto__: WebInspector.HBox.prototype
436 } 436 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698