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

Unified Diff: third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.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/text_editor/CodeMirrorUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js
index 1d9712df060ab0211a0acf4334cc0fd006e8dcbc..cf16d7885c8068dced48a4555c8d0ceb43ad3ad3 100644
--- a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js
@@ -30,7 +30,7 @@
TextEditor.CodeMirrorUtils = {};
/**
- * @param {!Common.TextRange} range
+ * @param {!TextUtils.TextRange} range
* @return {!{start: !CodeMirror.Pos, end: !CodeMirror.Pos}}
*/
TextEditor.CodeMirrorUtils.toPos = function(range) {
@@ -43,15 +43,15 @@ TextEditor.CodeMirrorUtils.toPos = function(range) {
/**
* @param {!CodeMirror.Pos} start
* @param {!CodeMirror.Pos} end
- * @return {!Common.TextRange}
+ * @return {!TextUtils.TextRange}
*/
TextEditor.CodeMirrorUtils.toRange = function(start, end) {
- return new Common.TextRange(start.line, start.ch, end.line, end.ch);
+ return new TextUtils.TextRange(start.line, start.ch, end.line, end.ch);
};
/**
* @param {!CodeMirror.ChangeObject} changeObject
- * @return {{oldRange: !Common.TextRange, newRange: !Common.TextRange}}
+ * @return {{oldRange: !TextUtils.TextRange, newRange: !TextUtils.TextRange}}
*/
TextEditor.CodeMirrorUtils.changeObjectToEditOperation = function(changeObject) {
var oldRange = TextEditor.CodeMirrorUtils.toRange(changeObject.from, changeObject.to);
@@ -115,7 +115,7 @@ TextEditor.CodeMirrorUtils.appendThemeStyle = function(element) {
/**
- * @implements {Common.TokenizerFactory}
+ * @implements {TextUtils.TokenizerFactory}
* @unrestricted
*/
TextEditor.CodeMirrorUtils.TokenizerFactory = class {

Powered by Google App Engine
This is Rietveld 408576698