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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js b/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
index 6479e290a8ad805f20479c7ca2fe18a8572b979a..7403bb85738b3f922c819a190c04c41a41c91b62 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/StaticContentProvider.js
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
- * @implements {WebInspector.ContentProvider}
+ * @implements {Common.ContentProvider}
* @unrestricted
*/
-WebInspector.StaticContentProvider = class {
+Common.StaticContentProvider = class {
/**
* @param {string} contentURL
- * @param {!WebInspector.ResourceType} contentType
+ * @param {!Common.ResourceType} contentType
* @param {function():!Promise<string>} lazyContent
*/
constructor(contentURL, contentType, lazyContent) {
@@ -19,13 +19,13 @@ WebInspector.StaticContentProvider = class {
/**
* @param {string} contentURL
- * @param {!WebInspector.ResourceType} contentType
+ * @param {!Common.ResourceType} contentType
* @param {string} content
- * @return {!WebInspector.StaticContentProvider}
+ * @return {!Common.StaticContentProvider}
*/
static fromString(contentURL, contentType, content) {
var lazyContent = () => Promise.resolve(content);
- return new WebInspector.StaticContentProvider(contentURL, contentType, lazyContent);
+ return new Common.StaticContentProvider(contentURL, contentType, lazyContent);
}
/**
@@ -38,7 +38,7 @@ WebInspector.StaticContentProvider = class {
/**
* @override
- * @return {!WebInspector.ResourceType}
+ * @return {!Common.ResourceType}
*/
contentType() {
return this._contentType;
@@ -57,14 +57,14 @@ WebInspector.StaticContentProvider = class {
* @param {string} query
* @param {boolean} caseSensitive
* @param {boolean} isRegex
- * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} callback
+ * @param {function(!Array.<!Common.ContentProvider.SearchMatch>)} callback
*/
searchInContent(query, caseSensitive, isRegex, callback) {
/**
* @param {string} content
*/
function performSearch(content) {
- callback(WebInspector.ContentProvider.performSearchInContent(content, query, caseSensitive, isRegex));
+ callback(Common.ContentProvider.performSearchInContent(content, query, caseSensitive, isRegex));
}
this._lazyContent().then(performSearch);

Powered by Google App Engine
This is Rietveld 408576698