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

Unified Diff: third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.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/text_editor/CodeMirrorUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js
index b53c2eb49d1666c5605f759df211fc6ddb82dae3..b0c00d60ca406233d6089ec8ab67030298d21124 100644
--- a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorUtils.js
@@ -121,6 +121,9 @@ WebInspector.CodeMirrorUtils.prototype = {
e.consume();
},
+ /**
+ * @override
+ */
setUpEditor: function(editingContext)
{
var element = editingContext.element;
@@ -145,17 +148,26 @@ WebInspector.CodeMirrorUtils.prototype = {
editingContext.codeMirror = codeMirror;
},
+ /**
+ * @override
+ */
closeEditor: function(editingContext)
{
editingContext.element.removeEventListener("copy", this._consumeCopy, false);
editingContext.cssLoadView.detach();
},
+ /**
+ * @override
+ */
cancelEditing: function(editingContext)
{
editingContext.codeMirror.setValue(editingContext.oldText);
},
+ /**
+ * @override
+ */
augmentEditingHandle: function(editingContext, handle)
{
function setWidth(editingContext, width)

Powered by Google App Engine
This is Rietveld 408576698