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

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

Issue 2678233002: DevTools: track more elements panel user actions (Closed)
Patch Set: fixup Created 3 years, 9 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) 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 } 316 }
317 317
318 /** 318 /**
319 * @override 319 * @override
320 * @param {boolean=} selectedByUser 320 * @param {boolean=} selectedByUser
321 * @return {boolean} 321 * @return {boolean}
322 */ 322 */
323 onselect(selectedByUser) { 323 onselect(selectedByUser) {
324 this.treeOutline.suppressRevealAndSelect = true; 324 this.treeOutline.suppressRevealAndSelect = true;
325 this.treeOutline.selectDOMNode(this._node, selectedByUser); 325 this.treeOutline.selectDOMNode(this._node, selectedByUser);
326 if (selectedByUser) 326 if (selectedByUser) {
327 this._node.highlight(); 327 this._node.highlight();
328 Host.userMetrics.actionTaken(Host.UserMetrics.Action.ChangeInspectedNodeIn ElementsPanel);
329 }
328 this._createSelection(); 330 this._createSelection();
329 this.treeOutline.suppressRevealAndSelect = false; 331 this.treeOutline.suppressRevealAndSelect = false;
330 return true; 332 return true;
331 } 333 }
332 334
333 /** 335 /**
334 * @override 336 * @override
335 * @return {boolean} 337 * @return {boolean}
336 */ 338 */
337 ondelete() { 339 ondelete() {
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 Elements.ElementsTreeElement.ForbiddenClosingTagElements = new Set([ 1609 Elements.ElementsTreeElement.ForbiddenClosingTagElements = new Set([
1608 'area', 'base', 'basefont', 'br', 'canvas', 'col', 'command', 'embed', 'frame', 'hr', 1610 'area', 'base', 'basefont', 'br', 'canvas', 'col', 'command', 'embed', 'frame', 'hr',
1609 'img', 'input', 'keygen', 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr' 1611 'img', 'input', 'keygen', 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr'
1610 ]); 1612 ]);
1611 1613
1612 // These tags we do not allow editing their tag name. 1614 // These tags we do not allow editing their tag name.
1613 Elements.ElementsTreeElement.EditTagBlacklist = new Set(['html', 'head', 'body'] ); 1615 Elements.ElementsTreeElement.EditTagBlacklist = new Set(['html', 'head', 'body'] );
1614 1616
1615 /** @typedef {{cancel: function(), commit: function(), resize: function(), edito r:!UI.TextEditor}} */ 1617 /** @typedef {{cancel: function(), commit: function(), resize: function(), edito r:!UI.TextEditor}} */
1616 Elements.MultilineEditorController; 1618 Elements.MultilineEditorController;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698