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

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
« no previous file with comments | « Source/devtools/front_end/cm/headlesscodemirror.js ('k') | Source/devtools/front_end/inspector.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..adbaacc4d5427eca432a59b2bffe76e87a5a1251 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,11 @@ CodeMirror.Pos.prototype.line;
CodeMirror.Pos.prototype.ch;
/** @constructor */
-CodeMirror.StringStream = function() { }
+CodeMirror.StringStream = function(line)
+{
+ this.pos = 0;
+ this.start = 0;
+}
CodeMirror.StringStream.prototype = {
backUp: function (n) { },
column: function () { },
« no previous file with comments | « Source/devtools/front_end/cm/headlesscodemirror.js ('k') | Source/devtools/front_end/inspector.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698