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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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/SourcesTextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
index 663760dd138308b51d67997ff084fc2db0056c68..6c285623b222827657f82b1ba417408bfe3e5dae 100644
--- a/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js
@@ -31,7 +31,7 @@ WebInspector.SourcesTextEditor = function(delegate)
this.codeMirror().on("beforeSelectionChange", this._fireBeforeSelectionChanged.bind(this));
this.element.addEventListener("contextmenu", this._contextMenu.bind(this), false);
- this._blockIndentController = new WebInspector.SourcesTextEditor.BlockIndentController(this.codeMirror());
+ this.codeMirror().addKeyMap(WebInspector.SourcesTextEditor._BlockIndentController);
this._tokenHighlighter = new WebInspector.SourcesTextEditor.TokenHighlighter(this, this.codeMirror());
/** @type {!Array<string>} */
@@ -684,16 +684,7 @@ CodeMirror.commands.sourcesDismiss = function(codemirror)
return CodeMirror.commands.dismiss(codemirror);
};
-/**
- * @constructor
- * @param {!CodeMirror} codeMirror
- */
-WebInspector.SourcesTextEditor.BlockIndentController = function(codeMirror)
-{
- codeMirror.addKeyMap(this);
-};
-
-WebInspector.SourcesTextEditor.BlockIndentController.prototype = {
+WebInspector.SourcesTextEditor._BlockIndentController = {
name: "blockIndentKeymap",
/**

Powered by Google App Engine
This is Rietveld 408576698