OLD | NEW |
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 * @unrestricted | 7 * @unrestricted |
8 * @implements {UI.ListDelegate} | 8 * @implements {UI.ListDelegate} |
9 */ | 9 */ |
10 QuickOpen.FilteredListWidget = class extends UI.VBox { | 10 QuickOpen.FilteredListWidget = class extends UI.VBox { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 if (ranges) { | 112 if (ranges) { |
113 UI.highlightRangesWithStyleClass(element, ranges, 'highlight'); | 113 UI.highlightRangesWithStyleClass(element, ranges, 'highlight'); |
114 return true; | 114 return true; |
115 } | 115 } |
116 return false; | 116 return false; |
117 } | 117 } |
118 | 118 |
119 showAsDialog() { | 119 showAsDialog() { |
120 this._dialog = new UI.Dialog(); | 120 this._dialog = new UI.Dialog(); |
121 this._dialog.setWrapsContent(true); | 121 this._dialog.setWrapsContent(true); |
122 this._dialog.setPosition(undefined, 22); | 122 this._dialog.setPosition(null, 22); |
123 this.show(this._dialog.element); | 123 this.show(this._dialog.element); |
124 this._dialog.show(); | 124 this._dialog.show(); |
125 this._updateShowMatchingItems(); | 125 this._updateShowMatchingItems(); |
126 } | 126 } |
127 | 127 |
128 /** | 128 /** |
129 * @return {string} | 129 * @return {string} |
130 */ | 130 */ |
131 _value() { | 131 _value() { |
132 return this._prompt.text().trim(); | 132 return this._prompt.text().trim(); |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 /** | 539 /** |
540 * @return {string} | 540 * @return {string} |
541 */ | 541 */ |
542 notFoundText() { | 542 notFoundText() { |
543 return Common.UIString('No results found'); | 543 return Common.UIString('No results found'); |
544 } | 544 } |
545 | 545 |
546 dispose() { | 546 dispose() { |
547 } | 547 } |
548 }; | 548 }; |
OLD | NEW |