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

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

Issue 23474010: DevTools: "Jump between editing locations" experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline 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/TextEditor.js
diff --git a/Source/devtools/front_end/TextEditor.js b/Source/devtools/front_end/TextEditor.js
index 5111163572b6c5db6870c0774a8b6a281f87af94..9d6400b20bb1f3ca92653d0f9b0e4f6296981cf1 100644
--- a/Source/devtools/front_end/TextEditor.js
+++ b/Source/devtools/front_end/TextEditor.js
@@ -287,6 +287,26 @@ WebInspector.TextEditor.prototype = {
/**
* @interface
*/
+WebInspector.TextEditorPositionHandler = function()
+{
+}
+
+WebInspector.TextEditorPositionHandler.prototype = {
+ /**
+ * @return {?{lineNumber: number, columnNumber: number}}
+ */
+ resolve: function() { },
+
+ /**
+ * @param {WebInspector.TextEditorPositionHandler} positionHandle
+ * @return {boolean}
+ */
+ equal: function(positionHandle) { }
+}
+
+/**
+ * @interface
+ */
WebInspector.TextEditorDelegate = function()
{
}
@@ -327,5 +347,11 @@ WebInspector.TextEditorDelegate.prototype = {
* @param {boolean} isExternal
* @return {Element}
*/
- createLink: function(hrefValue, isExternal) { }
+ createLink: function(hrefValue, isExternal) { },
+
+ /**
+ * @param {WebInspector.TextEditorPositionHandler} from
+ * @param {WebInspector.TextEditorPositionHandler} to
+ */
+ onJumpToPosition: function(from, to) { }
}
« Source/devtools/front_end/ScriptsPanel.js ('K') | « Source/devtools/front_end/SourceFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698