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

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

Issue 1336803005: DevTools: use diff_match_patch instead of jsdifflib for text diffing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix file permissions Created 5 years, 3 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/diff/module.json ('k') | Source/devtools/front_end/inspector.json » ('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 ec7fa0273f2e2227d5ecf1c1e5682b59fe4b3d59..acc89281af421399180fc5a8039327105e4acb99 100644
--- a/Source/devtools/front_end/externs.js
+++ b/Source/devtools/front_end/externs.js
@@ -307,12 +307,21 @@ Adb.Browser;
/** @typedef {{id: string, adbModel: string, adbSerial: string, browsers: !Array.<!Adb.Browser>, adbPortStatus: !Array.<number>, adbConnected: boolean}} */
Adb.Device;
-/* jsdifflib API */
-var difflib = {};
-difflib.stringAsLines = function(text) { return []; }
-/** @constructor */
-difflib.SequenceMatcher = function(baseText, newText) { }
-difflib.SequenceMatcher.prototype.get_opcodes = function() { return []; }
+/**
+ * @constructor
+ */
+function diff_match_patch()
+{
+}
+
+diff_match_patch.prototype = {
+ /**
+ * @param {string} text1
+ * @param {string} text2
+ * @return {!Array.<!{0: number, 1: string}>}
+ */
+ diff_main: function(text1, text2) { }
+}
/** @constructor */
function Path2D() {}
« no previous file with comments | « Source/devtools/front_end/diff/module.json ('k') | Source/devtools/front_end/inspector.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698