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

Side by Side Diff: Source/devtools/front_end/profiler/ProfilesPanel.js

Issue 658403002: DevTools: Support regex search and case sensitive search in sources panel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 }, 863 },
864 864
865 closeVisibleView: function() 865 closeVisibleView: function()
866 { 866 {
867 if (this.visibleView) 867 if (this.visibleView)
868 this.visibleView.detach(); 868 this.visibleView.detach();
869 delete this.visibleView; 869 delete this.visibleView;
870 }, 870 },
871 871
872 /** 872 /**
873 * @param {string} query 873 * @param {!WebInspector.SearchableView.SearchConfig} searchConfig
874 * @param {boolean} shouldJump 874 * @param {boolean} shouldJump
875 * @param {boolean=} jumpBackwards 875 * @param {boolean=} jumpBackwards
876 */ 876 */
877 performSearch: function(query, shouldJump, jumpBackwards) 877 performSearch: function(searchConfig, shouldJump, jumpBackwards)
878 { 878 {
879 var query = searchConfig.query;
879 this.searchCanceled(); 880 this.searchCanceled();
880 881
881 var visibleView = this.visibleView; 882 var visibleView = this.visibleView;
882 if (!visibleView) 883 if (!visibleView)
883 return; 884 return;
884 885
885 /** 886 /**
886 * @this {WebInspector.ProfilesPanel} 887 * @this {WebInspector.ProfilesPanel}
887 */ 888 */
888 function finishedCallback(view, searchMatches) 889 function finishedCallback(view, searchMatches)
(...skipping 28 matching lines...) Expand all
917 jumpToPreviousSearchResult: function() 918 jumpToPreviousSearchResult: function()
918 { 919 {
919 if (!this._searchResultsView) 920 if (!this._searchResultsView)
920 return; 921 return;
921 if (this._searchResultsView !== this.visibleView) 922 if (this._searchResultsView !== this.visibleView)
922 return; 923 return;
923 this._searchResultsView.jumpToPreviousSearchResult(); 924 this._searchResultsView.jumpToPreviousSearchResult();
924 this._searchableView.updateCurrentMatchIndex(this._searchResultsView.cur rentSearchResultIndex()); 925 this._searchableView.updateCurrentMatchIndex(this._searchResultsView.cur rentSearchResultIndex());
925 }, 926 },
926 927
928 /**
929 * @return {boolean}
930 */
931 supportsCaseSensitiveSearch: function()
932 {
933 return false;
934 },
935
936 /**
937 * @return {boolean}
938 */
939 supportsRegexSearch: function()
940 {
941 return false;
942 },
943
927 searchCanceled: function() 944 searchCanceled: function()
928 { 945 {
929 if (this._searchResultsView) { 946 if (this._searchResultsView) {
930 if (this._searchResultsView.searchCanceled) 947 if (this._searchResultsView.searchCanceled)
931 this._searchResultsView.searchCanceled(); 948 this._searchResultsView.searchCanceled();
932 this._searchResultsView.currentQuery = null; 949 this._searchResultsView.currentQuery = null;
933 this._searchResultsView = null; 950 this._searchResultsView = null;
934 } 951 }
935 this._searchableView.updateSearchMatchesCount(0); 952 this._searchableView.updateSearchMatchesCount(0);
936 }, 953 },
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 1341
1325 WebInspector.ProfilesPanelFactory.prototype = { 1342 WebInspector.ProfilesPanelFactory.prototype = {
1326 /** 1343 /**
1327 * @return {!WebInspector.Panel} 1344 * @return {!WebInspector.Panel}
1328 */ 1345 */
1329 createPanel: function() 1346 createPanel: function()
1330 { 1347 {
1331 return WebInspector.ProfilesPanel._instance(); 1348 return WebInspector.ProfilesPanel._instance();
1332 } 1349 }
1333 } 1350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698