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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
index 0a30bd5fe4732e51c2e81acb62015aede0bef832..7e5a368bcf4f6a9acc111d9d8c287ca3886230c0 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -540,13 +540,13 @@ Workspace.UISourceCode = class extends Common.Object {
*/
addLineMessage(level, text, lineNumber, columnNumber) {
return this.addMessage(
- level, text, new Common.TextRange(lineNumber, columnNumber || 0, lineNumber, columnNumber || 0));
+ level, text, new TextUtils.TextRange(lineNumber, columnNumber || 0, lineNumber, columnNumber || 0));
}
/**
* @param {!Workspace.UISourceCode.Message.Level} level
* @param {string} text
- * @param {!Common.TextRange} range
+ * @param {!TextUtils.TextRange} range
* @return {!Workspace.UISourceCode.Message} message
*/
addMessage(level, text, range) {
@@ -580,11 +580,11 @@ Workspace.UISourceCode = class extends Common.Object {
* @param {?} data
*/
addLineDecoration(lineNumber, type, data) {
- this.addDecoration(Common.TextRange.createFromLocation(lineNumber, 0), type, data);
+ this.addDecoration(TextUtils.TextRange.createFromLocation(lineNumber, 0), type, data);
}
/**
- * @param {!Common.TextRange} range
+ * @param {!TextUtils.TextRange} range
* @param {string} type
* @param {?} data
*/
@@ -804,7 +804,7 @@ Workspace.UISourceCode.Message = class {
* @param {!Workspace.UISourceCode} uiSourceCode
* @param {!Workspace.UISourceCode.Message.Level} level
* @param {string} text
- * @param {!Common.TextRange} range
+ * @param {!TextUtils.TextRange} range
*/
constructor(uiSourceCode, level, text, range) {
this._uiSourceCode = uiSourceCode;
@@ -835,7 +835,7 @@ Workspace.UISourceCode.Message = class {
}
/**
- * @return {!Common.TextRange}
+ * @return {!TextUtils.TextRange}
*/
range() {
return this._range;
@@ -882,7 +882,7 @@ Workspace.UISourceCode.Message.Level = {
*/
Workspace.UISourceCode.LineMarker = class {
/**
- * @param {!Common.TextRange} range
+ * @param {!TextUtils.TextRange} range
* @param {string} type
* @param {?} data
*/
@@ -893,7 +893,7 @@ Workspace.UISourceCode.LineMarker = class {
}
/**
- * @return {!Common.TextRange}
+ * @return {!TextUtils.TextRange}
*/
range() {
return this._range;

Powered by Google App Engine
This is Rietveld 408576698