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

Side by Side Diff: Source/devtools/front_end/elements/ElementsTreeOutline.js

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 25 matching lines...) Expand all
36 * @param {boolean=} selectEnabled 36 * @param {boolean=} selectEnabled
37 */ 37 */
38 WebInspector.ElementsTreeOutline = function(domModel, omitRootDOMNode, selectEna bled) 38 WebInspector.ElementsTreeOutline = function(domModel, omitRootDOMNode, selectEna bled)
39 { 39 {
40 this._domModel = domModel; 40 this._domModel = domModel;
41 this._treeElementSymbol = Symbol("treeElement"); 41 this._treeElementSymbol = Symbol("treeElement");
42 42
43 var element = createElement("div"); 43 var element = createElement("div");
44 44
45 this._shadowRoot = element.createShadowRoot(); 45 this._shadowRoot = element.createShadowRoot();
46 this._shadowRoot.appendChild(WebInspector.View.createStyleElement("elements/ elementsTreeOutline.css")); 46 this._shadowRoot.appendChild(WebInspector.Widget.createStyleElement("element s/elementsTreeOutline.css"));
47 var outlineDisclosureElement = this._shadowRoot.createChild("div", "elements -disclosure"); 47 var outlineDisclosureElement = this._shadowRoot.createChild("div", "elements -disclosure");
48 WebInspector.installComponentRootStyles(outlineDisclosureElement); 48 WebInspector.installComponentRootStyles(outlineDisclosureElement);
49 49
50 TreeOutline.call(this); 50 TreeOutline.call(this);
51 this._element = this.element; 51 this._element = this.element;
52 this._element.classList.add("elements-tree-outline", "source-code"); 52 this._element.classList.add("elements-tree-outline", "source-code");
53 this._element.addEventListener("mousedown", this._onmousedown.bind(this), fa lse); 53 this._element.addEventListener("mousedown", this._onmousedown.bind(this), fa lse);
54 this._element.addEventListener("mousemove", this._onmousemove.bind(this), fa lse); 54 this._element.addEventListener("mousemove", this._onmousemove.bind(this), fa lse);
55 this._element.addEventListener("mouseleave", this._onmouseleave.bind(this), false); 55 this._element.addEventListener("mouseleave", this._onmouseleave.bind(this), false);
56 this._element.addEventListener("dragstart", this._ondragstart.bind(this), fa lse); 56 this._element.addEventListener("dragstart", this._ondragstart.bind(this), fa lse);
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after
1890 if (node) { 1890 if (node) {
1891 this.treeOutline._selectedDOMNode = node; 1891 this.treeOutline._selectedDOMNode = node;
1892 this.treeOutline._selectedNodeChanged(); 1892 this.treeOutline._selectedNodeChanged();
1893 } 1893 }
1894 } 1894 }
1895 return true; 1895 return true;
1896 }, 1896 },
1897 1897
1898 __proto__: TreeElement.prototype 1898 __proto__: TreeElement.prototype
1899 } 1899 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/ElementsSidebarView.js ('k') | Source/devtools/front_end/elements/StylesPopoverHelper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698