| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 /** | 355 /** |
| 356 * @constructor | 356 * @constructor |
| 357 * @implements {WebInspector.ActionDelegate} | 357 * @implements {WebInspector.ActionDelegate} |
| 358 */ | 358 */ |
| 359 WebInspector.AdvancedSearchView.ToggleDrawerViewActionDelegate = function() | 359 WebInspector.AdvancedSearchView.ToggleDrawerViewActionDelegate = function() |
| 360 { | 360 { |
| 361 } | 361 } |
| 362 | 362 |
| 363 WebInspector.AdvancedSearchView.ToggleDrawerViewActionDelegate.prototype = { | 363 WebInspector.AdvancedSearchView.ToggleDrawerViewActionDelegate.prototype = { |
| 364 /** | 364 /** |
| 365 * @param {!Event} event | 365 * @param {!WebInspector.Context} context |
| 366 * @return {boolean} | 366 * @return {boolean} |
| 367 */ | 367 */ |
| 368 handleAction: function(event) | 368 handleAction: function(context) |
| 369 { | 369 { |
| 370 if (WebInspector.Dialog.currentInstance()) | |
| 371 return false; | |
| 372 var searchView = this._searchView(); | 370 var searchView = this._searchView(); |
| 373 if (!searchView) | 371 if (!searchView) |
| 374 return false; | 372 return false; |
| 375 if (!searchView.isShowing() || searchView._search !== document.activeEle
ment) { | 373 if (!searchView.isShowing() || searchView._search !== document.activeEle
ment) { |
| 376 WebInspector.inspectorView.showPanel("sources"); | 374 WebInspector.inspectorView.showPanel("sources"); |
| 377 searchView.toggle(); | 375 searchView.toggle(); |
| 378 } else { | 376 } else { |
| 379 WebInspector.inspectorView.closeDrawer(); | 377 WebInspector.inspectorView.closeDrawer(); |
| 380 } | 378 } |
| 381 return true; | 379 return true; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 /** | 435 /** |
| 438 * @param {!WebInspector.ProjectSearchConfig} searchConfig | 436 * @param {!WebInspector.ProjectSearchConfig} searchConfig |
| 439 * @return {!WebInspector.SearchResultsPane} | 437 * @return {!WebInspector.SearchResultsPane} |
| 440 */ | 438 */ |
| 441 createSearchResultsPane: function(searchConfig) { } | 439 createSearchResultsPane: function(searchConfig) { } |
| 442 } | 440 } |
| 443 | 441 |
| 444 importScript("SearchConfig.js"); | 442 importScript("SearchConfig.js"); |
| 445 importScript("FileBasedSearchResultsPane.js"); | 443 importScript("FileBasedSearchResultsPane.js"); |
| 446 importScript("SourcesSearchScope.js"); | 444 importScript("SourcesSearchScope.js"); |
| OLD | NEW |