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

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

Issue 2644233007: DevTools: Use real focus in TreeOutline (Closed)
Patch Set: test results 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 this.update(); 103 this.update();
104 } 104 }
105 105
106 /** 106 /**
107 * @return {symbol} 107 * @return {symbol}
108 */ 108 */
109 treeElementSymbol() { 109 treeElementSymbol() {
110 return this._treeElementSymbol; 110 return this._treeElementSymbol;
111 } 111 }
112 112
113 /**
114 * @override
115 */
116 focus() {
117 this._element.focus();
118 }
119 113
120 /** 114 /**
121 * @param {boolean} wrap 115 * @param {boolean} wrap
122 */ 116 */
123 setWordWrap(wrap) { 117 setWordWrap(wrap) {
124 this._element.classList.toggle('elements-tree-nowrap', !wrap); 118 this._element.classList.toggle('elements-tree-nowrap', !wrap);
125 } 119 }
126 120
127 /** 121 /**
128 * @return {!SDK.DOMModel} 122 * @return {!SDK.DOMModel}
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 */ 1688 */
1695 function resolved(node) { 1689 function resolved(node) {
1696 if (node) { 1690 if (node) {
1697 this.treeOutline._selectedDOMNode = node; 1691 this.treeOutline._selectedDOMNode = node;
1698 this.treeOutline._selectedNodeChanged(); 1692 this.treeOutline._selectedNodeChanged();
1699 } 1693 }
1700 } 1694 }
1701 return true; 1695 return true;
1702 } 1696 }
1703 }; 1697 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698