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/devtools/front_end/ContentProviderBasedProjectDelegate.js

Issue 14672033: DevTools: Make snippets renaming work through SnippetsProjectDelegate. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 7 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 * @param {Array.<string>} path 90 * @param {Array.<string>} path
91 * @param {string} newContent 91 * @param {string} newContent
92 * @param {function(?string)} callback 92 * @param {function(?string)} callback
93 */ 93 */
94 setFileContent: function(path, newContent, callback) 94 setFileContent: function(path, newContent, callback)
95 { 95 {
96 callback(null); 96 callback(null);
97 }, 97 },
98 98
99 /** 99 /**
100 * @return {boolean}
101 */
102 canRename: function()
103 {
104 return false;
105 },
106
107 /**
108 * @param {Array.<string>} path
109 * @param {string} newName
110 * @param {function(boolean, string=)} callback
111 */
112 rename: function(path, newName, callback)
113 {
114 callback(false);
115 },
116
117 /**
100 * @param {Array.<string>} path 118 * @param {Array.<string>} path
101 * @param {string} query 119 * @param {string} query
102 * @param {boolean} caseSensitive 120 * @param {boolean} caseSensitive
103 * @param {boolean} isRegex 121 * @param {boolean} isRegex
104 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb ack 122 * @param {function(Array.<WebInspector.ContentProvider.SearchMatch>)} callb ack
105 */ 123 */
106 searchInFileContent: function(path, query, caseSensitive, isRegex, callback) 124 searchInFileContent: function(path, query, caseSensitive, isRegex, callback)
107 { 125 {
108 var contentProvider = this._contentProviders[path.join("/")]; 126 var contentProvider = this._contentProviders[path.join("/")];
109 contentProvider.searchInContent(query, caseSensitive, isRegex, callback) ; 127 contentProvider.searchInContent(query, caseSensitive, isRegex, callback) ;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 }, 161 },
144 162
145 reset: function() 163 reset: function()
146 { 164 {
147 this._contentProviders = {}; 165 this._contentProviders = {};
148 this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.Reset, null); 166 this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.Reset, null);
149 }, 167 },
150 168
151 __proto__: WebInspector.Object.prototype 169 __proto__: WebInspector.Object.prototype
152 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698