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

Unified Diff: Source/devtools/front_end/externs.js

Issue 22638008: DevTools: Use CodeMirror modes instead of highlight tokenizers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 7 years, 4 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: Source/devtools/front_end/externs.js
diff --git a/Source/devtools/front_end/externs.js b/Source/devtools/front_end/externs.js
index cf32051fdf3d8b362afbd6899193c60e91a35d03..a6a8506e6a93f370a19973e32ded91608667aa8b 100644
--- a/Source/devtools/front_end/externs.js
+++ b/Source/devtools/front_end/externs.js
@@ -501,6 +501,7 @@ CodeMirror.mimeModes = {};
CodeMirror.getMode = function(options, spec) { };
CodeMirror.overlayMode = function(mode1, mode2, squashSpans) { };
CodeMirror.defineMode = function(modeName, modeConstructor) { };
+CodeMirror.startState = function(mode) { };
/** @constructor */
CodeMirror.Pos = function(line, ch) { }
@@ -510,7 +511,10 @@ CodeMirror.Pos.prototype.line;
CodeMirror.Pos.prototype.ch;
/** @constructor */
-CodeMirror.StringStream = function() { }
+CodeMirror.StringStream = function(line) {
vsevik 2013/08/14 16:26:41 { on the next line
+ this.pos = 0;
+ this.start = 0;
+}
CodeMirror.StringStream.prototype = {
backUp: function (n) { },
column: function () { },

Powered by Google App Engine
This is Rietveld 408576698