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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptOutlineDialog.js

Issue 2627783002: DevTools: Remove caseSensitive from FilteredListWidget.Delegate (Closed)
Patch Set: Created 3 years, 11 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) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @unrestricted 8 * @unrestricted
9 */ 9 */
10 Sources.JavaScriptOutlineDialog = class extends QuickOpen.FilteredListWidget.Del egate { 10 Sources.JavaScriptOutlineDialog = class extends QuickOpen.FilteredListWidget.Del egate {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 /** 74 /**
75 * @override 75 * @override
76 * @param {number} itemIndex 76 * @param {number} itemIndex
77 * @param {string} query 77 * @param {string} query
78 * @param {!Element} titleElement 78 * @param {!Element} titleElement
79 * @param {!Element} subtitleElement 79 * @param {!Element} subtitleElement
80 */ 80 */
81 renderItem(itemIndex, query, titleElement, subtitleElement) { 81 renderItem(itemIndex, query, titleElement, subtitleElement) {
82 var item = this._functionItems[itemIndex]; 82 var item = this._functionItems[itemIndex];
83 titleElement.textContent = item.name + (item.arguments ? item.arguments : '' ); 83 titleElement.textContent = item.name + (item.arguments ? item.arguments : '' );
84 this.highlightRanges(titleElement, query); 84 QuickOpen.FilteredListWidget.highlightRanges(titleElement, query);
85 subtitleElement.textContent = ':' + (item.line + 1); 85 subtitleElement.textContent = ':' + (item.line + 1);
86 } 86 }
87 87
88 /** 88 /**
89 * @override 89 * @override
90 * @param {?number} itemIndex 90 * @param {?number} itemIndex
91 * @param {string} promptValue 91 * @param {string} promptValue
92 */ 92 */
93 selectItem(itemIndex, promptValue) { 93 selectItem(itemIndex, promptValue) {
94 if (itemIndex === null) 94 if (itemIndex === null)
95 return; 95 return;
96 var lineNumber = this._functionItems[itemIndex].line; 96 var lineNumber = this._functionItems[itemIndex].line;
97 if (!isNaN(lineNumber) && lineNumber >= 0) 97 if (!isNaN(lineNumber) && lineNumber >= 0)
98 this._selectItemCallback(lineNumber, this._functionItems[itemIndex].column ); 98 this._selectItemCallback(lineNumber, this._functionItems[itemIndex].column );
99 } 99 }
100 }; 100 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698