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

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

Issue 2714833002: DevTools: use interface for ObjectUI and make it a non-autostart module (Closed)
Patch Set: cl fb Created 3 years, 8 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 1549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 /** 1560 /**
1561 * @return {boolean} 1561 * @return {boolean}
1562 */ 1562 */
1563 hasRemovedChildren() { 1563 hasRemovedChildren() {
1564 return !!this._hasRemovedChildren; 1564 return !!this._hasRemovedChildren;
1565 } 1565 }
1566 }; 1566 };
1567 1567
1568 /** 1568 /**
1569 * @implements {Common.Renderer} 1569 * @implements {Common.Renderer}
1570 * @unrestricted
1571 */ 1570 */
1572 Elements.ElementsTreeOutline.Renderer = class { 1571 Elements.ElementsTreeOutline.Renderer = class {
1573 /** 1572 /**
1574 * @override 1573 * @override
1575 * @param {!Object} object 1574 * @param {!Object} object
1576 * @return {!Promise.<!Element>} 1575 * @return {!Promise.<!Element>}
1577 */ 1576 */
1578 render(object) { 1577 render(object) {
1579 return new Promise(renderPromise); 1578 return new Promise(renderPromise);
1580 1579
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 */ 1674 */
1676 function resolved(node) { 1675 function resolved(node) {
1677 if (node) { 1676 if (node) {
1678 this.treeOutline._selectedDOMNode = node; 1677 this.treeOutline._selectedDOMNode = node;
1679 this.treeOutline._selectedNodeChanged(); 1678 this.treeOutline._selectedNodeChanged();
1680 } 1679 }
1681 } 1680 }
1682 return true; 1681 return true;
1683 } 1682 }
1684 }; 1683 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698