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

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

Issue 2128093004: DevTools: Add color swatches to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First iteration 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 51bc5562847791c2893962fcfa54ffad9ced9824..229c825907e8ac6b02db30b0530c11b7a86b6f06 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
@@ -1006,6 +1006,19 @@ WebInspector.CodeMirrorTextEditor.prototype = {
},
/**
+ * @param {number} lineNumber
+ * @param {number} columnNumber
+ * @param {!Element} element
+ * @return {!CodeMirror.TextMarker}
+ */
+ addBookmark: function(lineNumber, columnNumber, element)
+ {
+ return this._codeMirror.setBookmark(new CodeMirror.Pos(lineNumber, columnNumber), {
+ widget: element
+ });
+ },
+
+ /**
* @override
* @return {!Element}
*/

Powered by Google App Engine
This is Rietveld 408576698