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

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

Issue 15986003: DevTools: [CodeMirror] autocompletion for CodeMirrorTextEditor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/JavaScriptSourceFrame.js
diff --git a/Source/devtools/front_end/JavaScriptSourceFrame.js b/Source/devtools/front_end/JavaScriptSourceFrame.js
index fd27de879b1721afed01eda7c26542b0bb01518b..c03fac42db21505856f400dec8029f72ef0241c2 100644
--- a/Source/devtools/front_end/JavaScriptSourceFrame.js
+++ b/Source/devtools/front_end/JavaScriptSourceFrame.js
@@ -47,6 +47,9 @@ WebInspector.JavaScriptSourceFrame = function(scriptsPanel, uiSourceCode)
this._popoverHelper = new WebInspector.ObjectPopoverHelper(this.textEditor.element,
this._getPopoverAnchor.bind(this), this._resolveObjectForPopover.bind(this), this._onHidePopover.bind(this), true);
+ if (WebInspector.experimentsSettings.textEditorAutocomplete.isEnabled())
+ this.textEditor.setCompletionDictionary(new WebInspector.SampleCompletionDictionary());
vsevik 2013/05/24 16:32:34 Let's put this into UISourceCodeFrame.
+
this.textEditor.element.addEventListener("keydown", this._onKeyDown.bind(this), true);
this.textEditor.addEventListener(WebInspector.TextEditor.Events.GutterClick, this._handleGutterClick.bind(this), this);

Powered by Google App Engine
This is Rietveld 408576698