| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 */ | 8 */ |
| 9 WebInspector.AdvancedSearchView = function() | 9 WebInspector.AdvancedSearchView = function() |
| 10 { | 10 { |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 { | 272 { |
| 273 this._searchMessageElement.textContent = finished ? WebInspector.UIStrin
g("Search finished.") : WebInspector.UIString("Search interrupted."); | 273 this._searchMessageElement.textContent = finished ? WebInspector.UIStrin
g("Search finished.") : WebInspector.UIString("Search interrupted."); |
| 274 }, | 274 }, |
| 275 | 275 |
| 276 focus: function() | 276 focus: function() |
| 277 { | 277 { |
| 278 WebInspector.setCurrentFocusElement(this._search); | 278 WebInspector.setCurrentFocusElement(this._search); |
| 279 this._search.select(); | 279 this._search.select(); |
| 280 }, | 280 }, |
| 281 | 281 |
| 282 wasShown: function() |
| 283 { |
| 284 this.focus(); |
| 285 }, |
| 286 |
| 282 willHide: function() | 287 willHide: function() |
| 283 { | 288 { |
| 284 this._stopSearch(); | 289 this._stopSearch(); |
| 285 }, | 290 }, |
| 286 | 291 |
| 287 /** | 292 /** |
| 288 * @param {!Event} event | 293 * @param {!Event} event |
| 289 */ | 294 */ |
| 290 _onKeyDown: function(event) | 295 _onKeyDown: function(event) |
| 291 { | 296 { |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 performIndexing: function(progress) { }, | 455 performIndexing: function(progress) { }, |
| 451 | 456 |
| 452 stopSearch: function() { }, | 457 stopSearch: function() { }, |
| 453 | 458 |
| 454 /** | 459 /** |
| 455 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 460 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 456 * @return {!WebInspector.SearchResultsPane} | 461 * @return {!WebInspector.SearchResultsPane} |
| 457 */ | 462 */ |
| 458 createSearchResultsPane: function(searchConfig) { } | 463 createSearchResultsPane: function(searchConfig) { } |
| 459 } | 464 } |
| OLD | NEW |