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

Unified Diff: third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js

Issue 2187173002: DevTools: Find bookmarks at line endpoints when calling _clearBookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/source_frame/CodeMirrorTextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
index 32b9870fbbeb742a6cf329d51d0d469ddfa28966..12fe79f361534a30d010f0e1e0f4f394e9d4d811 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js
@@ -1030,6 +1030,16 @@ WebInspector.CodeMirrorTextEditor.prototype = {
},
/**
+ * @param {!CodeMirror.Pos} pos
+ * @return {!Array.<!CodeMirror.TextMarker>}
+ */
+ bookmarksAt: function(pos)
lushnikov 2016/07/27 23:32:02 let's operate in terms of Ranges
flandy 2016/07/29 17:25:51 Done.
+ {
+ var markers = this._codeMirror.findMarksAt(pos);
+ return markers.filter(marker => marker.type === "bookmark");
+ },
+
+ /**
* @override
* @return {!Element}
*/

Powered by Google App Engine
This is Rietveld 408576698