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} |
*/ |