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

Side by Side Diff: Source/WebCore/inspector/front-end/Resource.js

Issue 8371003: Merge 97851 - Web Inspector: Enable caseSensitive search / Regex support in advanced search. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 } 876 }
877 if (typeof this._content !== "undefined") { 877 if (typeof this._content !== "undefined") {
878 callback(this.content, this._contentEncoded); 878 callback(this.content, this._contentEncoded);
879 return; 879 return;
880 } 880 }
881 this._pendingContentCallbacks.push(callback); 881 this._pendingContentCallbacks.push(callback);
882 if (this.finished) 882 if (this.finished)
883 this._innerRequestContent(); 883 this._innerRequestContent();
884 }, 884 },
885 885
886 searchInContent: function(query, callback) 886 searchInContent: function(query, caseSensitive, isRegex, callback)
887 { 887 {
888 function callbackWrapper(error, searchMatches) 888 function callbackWrapper(error, searchMatches)
889 { 889 {
890 callback(searchMatches || []); 890 callback(searchMatches || []);
891 } 891 }
892 892
893 if (this.frameId) 893 if (this.frameId)
894 PageAgent.searchInResource(this.frameId, this.url, query, callbackWr apper); 894 PageAgent.searchInResource(this.frameId, this.url, query, caseSensit ive, isRegex, callbackWrapper);
895 else 895 else
896 callback([]); 896 callback([]);
897 }, 897 },
898 898
899 populateImageSource: function(image) 899 populateImageSource: function(image)
900 { 900 {
901 function onResourceContent() 901 function onResourceContent()
902 { 902 {
903 image.src = this._contentURL(); 903 image.src = this._contentURL();
904 } 904 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 } 1022 }
1023 1023
1024 /** 1024 /**
1025 * @interface 1025 * @interface
1026 */ 1026 */
1027 WebInspector.ResourceDomainModelBinding = function() { } 1027 WebInspector.ResourceDomainModelBinding = function() { }
1028 WebInspector.ResourceDomainModelBinding.prototype = { 1028 WebInspector.ResourceDomainModelBinding.prototype = {
1029 canSetContent: function() { return true; }, 1029 canSetContent: function() { return true; },
1030 setContent: function(resource, content, majorChange, callback) { } 1030 setContent: function(resource, content, majorChange, callback) { }
1031 } 1031 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/NetworkPanel.js ('k') | Source/WebCore/inspector/front-end/Script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698