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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.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/workspace/SearchConfig.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js b/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js
index 937999865fc3217544de2af229f943b0091e1e9d..64e4912a67a03b8ab0294e1adc8fc85431474771 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/SearchConfig.js
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
- * @implements {WebInspector.ProjectSearchConfig}
+ * @implements {Workspace.ProjectSearchConfig}
* @unrestricted
*/
-WebInspector.SearchConfig = class {
+Workspace.SearchConfig = class {
/**
* @param {string} query
* @param {boolean} ignoreCase
@@ -20,10 +20,10 @@ WebInspector.SearchConfig = class {
/**
* @param {{query: string, ignoreCase: boolean, isRegex: boolean}} object
- * @return {!WebInspector.SearchConfig}
+ * @return {!Workspace.SearchConfig}
*/
static fromPlainObject(object) {
- return new WebInspector.SearchConfig(object.query, object.ignoreCase, object.isRegex);
+ return new Workspace.SearchConfig(object.query, object.ignoreCase, object.isRegex);
}
/**
@@ -73,7 +73,7 @@ WebInspector.SearchConfig = class {
var queryParts = this._query.match(regexp) || [];
/**
- * @type {!Array.<!WebInspector.SearchConfig.QueryTerm>}
+ * @type {!Array.<!Workspace.SearchConfig.QueryTerm>}
*/
this._fileQueries = [];
@@ -89,7 +89,7 @@ WebInspector.SearchConfig = class {
var fileQuery = this._parseFileQuery(queryPart);
if (fileQuery) {
this._fileQueries.push(fileQuery);
- /** @type {!Array.<!WebInspector.SearchConfig.RegexQuery>} */
+ /** @type {!Array.<!Workspace.SearchConfig.RegexQuery>} */
this._fileRegexQueries = this._fileRegexQueries || [];
this._fileRegexQueries.push(
{regex: new RegExp(fileQuery.text, this.ignoreCase ? 'i' : ''), isNegative: fileQuery.isNegative});
@@ -142,7 +142,7 @@ WebInspector.SearchConfig = class {
/**
* @param {string} query
- * @return {?WebInspector.SearchConfig.QueryTerm}
+ * @return {?Workspace.SearchConfig.QueryTerm}
*/
_parseFileQuery(query) {
var match = query.match(/^(-)?f(ile)?:/);
@@ -166,18 +166,18 @@ WebInspector.SearchConfig = class {
result += query.charAt(i);
}
}
- return new WebInspector.SearchConfig.QueryTerm(result, isNegative);
+ return new Workspace.SearchConfig.QueryTerm(result, isNegative);
}
};
/** @typedef {!{regex: !RegExp, isNegative: boolean}} */
-WebInspector.SearchConfig.RegexQuery;
+Workspace.SearchConfig.RegexQuery;
/**
* @unrestricted
*/
-WebInspector.SearchConfig.QueryTerm = class {
+Workspace.SearchConfig.QueryTerm = class {
/**
* @param {string} text
* @param {boolean} isNegative

Powered by Google App Engine
This is Rietveld 408576698