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

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

Issue 213423010: DevTools: Migrate General tab settings to extensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/CodeMirrorTextEditor.js
diff --git a/Source/devtools/front_end/CodeMirrorTextEditor.js b/Source/devtools/front_end/CodeMirrorTextEditor.js
index 2a5c328cff71bc9b466e28a8fdb985b41c5816ee..66487f20459d71f4a6787a52b9acfbc0575837f8 100644
--- a/Source/devtools/front_end/CodeMirrorTextEditor.js
+++ b/Source/devtools/front_end/CodeMirrorTextEditor.js
@@ -1730,3 +1730,29 @@ WebInspector.CodeMirrorTextEditor._overrideModeWithPrefixedTokens("xml", "xml-")
style.textContent = backgroundColorRule + foregroundColorRule;
document.head.appendChild(style);
})();
+
+/**
+ * @constructor
+ * @extends {WebInspector.SelectUISettingDelegate}
+ */
+WebInspector.CodeMirrorTextEditor.EditorIndentSettingDelegate = function()
+{
+ WebInspector.SelectUISettingDelegate.call(this);
+}
+
+WebInspector.CodeMirrorTextEditor.EditorIndentSettingDelegate.prototype = {
+ /**
+ * @return {!Array.<!Array.<*>>}
+ */
+ settingOptions: function()
+ {
+ return [
+ [ WebInspector.UIString("2 spaces"), WebInspector.TextUtils.Indent.TwoSpaces ],
+ [ WebInspector.UIString("4 spaces"), WebInspector.TextUtils.Indent.FourSpaces ],
+ [ WebInspector.UIString("8 spaces"), WebInspector.TextUtils.Indent.EightSpaces ],
+ [ WebInspector.UIString("Tab character"), WebInspector.TextUtils.Indent.TabCharacter ]
+ ];
+ },
+
+ __proto__: WebInspector.SelectUISettingDelegate.prototype
+}
« no previous file with comments | « no previous file | Source/devtools/front_end/DebuggerModel.js » ('j') | Source/devtools/front_end/DebuggerModel.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698