OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 }, | 860 }, |
861 | 861 |
862 closeVisibleView: function() | 862 closeVisibleView: function() |
863 { | 863 { |
864 if (this.visibleView) | 864 if (this.visibleView) |
865 this.visibleView.detach(); | 865 this.visibleView.detach(); |
866 delete this.visibleView; | 866 delete this.visibleView; |
867 }, | 867 }, |
868 | 868 |
869 /** | 869 /** |
870 * @param {string} query | 870 * @param {!WebInspector.SearchableView.SearchConfig} searchConfig |
871 * @param {boolean} shouldJump | 871 * @param {boolean} shouldJump |
872 * @param {boolean=} jumpBackwards | 872 * @param {boolean=} jumpBackwards |
873 */ | 873 */ |
874 performSearch: function(query, shouldJump, jumpBackwards) | 874 performSearch: function(searchConfig, shouldJump, jumpBackwards) |
875 { | 875 { |
| 876 var query = searchConfig.query; |
876 this.searchCanceled(); | 877 this.searchCanceled(); |
877 | 878 |
878 var visibleView = this.visibleView; | 879 var visibleView = this.visibleView; |
879 if (!visibleView) | 880 if (!visibleView) |
880 return; | 881 return; |
881 | 882 |
882 /** | 883 /** |
883 * @this {WebInspector.ProfilesPanel} | 884 * @this {WebInspector.ProfilesPanel} |
884 */ | 885 */ |
885 function finishedCallback(view, searchMatches) | 886 function finishedCallback(view, searchMatches) |
(...skipping 28 matching lines...) Expand all Loading... |
914 jumpToPreviousSearchResult: function() | 915 jumpToPreviousSearchResult: function() |
915 { | 916 { |
916 if (!this._searchResultsView) | 917 if (!this._searchResultsView) |
917 return; | 918 return; |
918 if (this._searchResultsView !== this.visibleView) | 919 if (this._searchResultsView !== this.visibleView) |
919 return; | 920 return; |
920 this._searchResultsView.jumpToPreviousSearchResult(); | 921 this._searchResultsView.jumpToPreviousSearchResult(); |
921 this._searchableView.updateCurrentMatchIndex(this._searchResultsView.cur
rentSearchResultIndex()); | 922 this._searchableView.updateCurrentMatchIndex(this._searchResultsView.cur
rentSearchResultIndex()); |
922 }, | 923 }, |
923 | 924 |
| 925 /** |
| 926 * @return {boolean} |
| 927 */ |
| 928 supportsCaseSensitiveSearch: function() |
| 929 { |
| 930 return false; |
| 931 }, |
| 932 |
| 933 /** |
| 934 * @return {boolean} |
| 935 */ |
| 936 supportsRegexSearch: function() |
| 937 { |
| 938 return false; |
| 939 }, |
| 940 |
924 searchCanceled: function() | 941 searchCanceled: function() |
925 { | 942 { |
926 if (this._searchResultsView) { | 943 if (this._searchResultsView) { |
927 if (this._searchResultsView.searchCanceled) | 944 if (this._searchResultsView.searchCanceled) |
928 this._searchResultsView.searchCanceled(); | 945 this._searchResultsView.searchCanceled(); |
929 this._searchResultsView.currentQuery = null; | 946 this._searchResultsView.currentQuery = null; |
930 this._searchResultsView = null; | 947 this._searchResultsView = null; |
931 } | 948 } |
932 this._searchableView.updateSearchMatchesCount(0); | 949 this._searchableView.updateSearchMatchesCount(0); |
933 }, | 950 }, |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 | 1338 |
1322 WebInspector.ProfilesPanelFactory.prototype = { | 1339 WebInspector.ProfilesPanelFactory.prototype = { |
1323 /** | 1340 /** |
1324 * @return {!WebInspector.Panel} | 1341 * @return {!WebInspector.Panel} |
1325 */ | 1342 */ |
1326 createPanel: function() | 1343 createPanel: function() |
1327 { | 1344 { |
1328 return WebInspector.ProfilesPanel._instance(); | 1345 return WebInspector.ProfilesPanel._instance(); |
1329 } | 1346 } |
1330 } | 1347 } |
OLD | NEW |