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

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

Issue 2664393002: DevTools: migrate elements panel gutter icon to UI.Icon (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/elementsTreeOutline.css » ('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) 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 {!SDK.DOMNode} node 36 * @param {!SDK.DOMNode} node
37 * @param {boolean=} elementCloseTag 37 * @param {boolean=} elementCloseTag
38 */ 38 */
39 constructor(node, elementCloseTag) { 39 constructor(node, elementCloseTag) {
40 // The title will be updated in onattach. 40 // The title will be updated in onattach.
41 super(); 41 super();
42 this._node = node; 42 this._node = node;
43 43
44 this._gutterContainer = this.listItemElement.createChild('div', 'gutter-cont ainer'); 44 this._gutterContainer = this.listItemElement.createChild('div', 'gutter-cont ainer');
45 this._gutterContainer.addEventListener('click', this._showContextMenu.bind(t his)); 45 this._gutterContainer.addEventListener('click', this._showContextMenu.bind(t his));
46 var gutterMenuIcon = UI.Icon.create('largeicon-menu', 'gutter-menu-icon');
47 this._gutterContainer.appendChild(gutterMenuIcon);
46 this._decorationsElement = this._gutterContainer.createChild('div', 'hidden' ); 48 this._decorationsElement = this._gutterContainer.createChild('div', 'hidden' );
47 49
48 this._elementCloseTag = elementCloseTag; 50 this._elementCloseTag = elementCloseTag;
49 51
50 if (this._node.nodeType() === Node.ELEMENT_NODE && !elementCloseTag) 52 if (this._node.nodeType() === Node.ELEMENT_NODE && !elementCloseTag)
51 this._canAddAttributes = true; 53 this._canAddAttributes = true;
52 this._searchQuery = null; 54 this._searchQuery = null;
53 this._expandedChildrenLimit = Elements.ElementsTreeElement.InitialChildrenLi mit; 55 this._expandedChildrenLimit = Elements.ElementsTreeElement.InitialChildrenLi mit;
54 } 56 }
55 57
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 1565
1564 // A union of HTML4 and HTML5-Draft elements that explicitly 1566 // A union of HTML4 and HTML5-Draft elements that explicitly
1565 // or implicitly (for HTML5) forbid the closing tag. 1567 // or implicitly (for HTML5) forbid the closing tag.
1566 Elements.ElementsTreeElement.ForbiddenClosingTagElements = new Set([ 1568 Elements.ElementsTreeElement.ForbiddenClosingTagElements = new Set([
1567 'area', 'base', 'basefont', 'br', 'canvas', 'col', 'command', 'embed', 'frame', 'hr', 1569 'area', 'base', 'basefont', 'br', 'canvas', 'col', 'command', 'embed', 'frame', 'hr',
1568 'img', 'input', 'keygen', 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr' 1570 'img', 'input', 'keygen', 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr'
1569 ]); 1571 ]);
1570 1572
1571 // These tags we do not allow editing their tag name. 1573 // These tags we do not allow editing their tag name.
1572 Elements.ElementsTreeElement.EditTagBlacklist = new Set(['html', 'head', 'body'] ); 1574 Elements.ElementsTreeElement.EditTagBlacklist = new Set(['html', 'head', 'body'] );
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/elements/elementsTreeOutline.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698