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

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

Issue 15986003: DevTools: [CodeMirror] autocompletion for CodeMirrorTextEditor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments 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
« no previous file with comments | « Source/devtools/front_end/CodeMirrorTextEditor.js ('k') | Source/devtools/front_end/Settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CompletionDictionary.js
diff --git a/Source/devtools/front_end/CompletionDictionary.js b/Source/devtools/front_end/CompletionDictionary.js
index fd88165ea4c80c09908e407034046a591b8039fb..a7ee6e74faa173cb63ee10981d43336f13e68b43 100644
--- a/Source/devtools/front_end/CompletionDictionary.js
+++ b/Source/devtools/front_end/CompletionDictionary.js
@@ -45,6 +45,12 @@ WebInspector.CompletionDictionary.prototype = {
removeWord: function(word) { },
/**
+ * @param {string} word
+ * @return {boolean}
+ */
+ hasWord: function(word) { },
+
+ /**
* @param {string} prefix
* @return {Array.<string>}
*/
@@ -96,5 +102,14 @@ WebInspector.SampleCompletionDictionary.prototype = {
words.push(i);
}
return words;
+ },
+
+ /**
+ * @param {string} word
+ * @return {boolean}
+ */
+ hasWord: function(word)
+ {
+ return !!this._words[word];
}
}
« no previous file with comments | « Source/devtools/front_end/CodeMirrorTextEditor.js ('k') | Source/devtools/front_end/Settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698