Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / SourceFrame.js
index 1d84cba..8e0125a 100644 (file)
@@ -44,7 +44,7 @@ WebInspector.SourceFrame = function(contentProvider)
 
     var textEditorDelegate = new WebInspector.TextEditorDelegateForSourceFrame(this);
 
-    loadScript("CodeMirrorTextEditor.js");
+    WebInspector.moduleManager.loadModule("codemirror");
     this._textEditor = new WebInspector.CodeMirrorTextEditor(this._url, textEditorDelegate);
 
     this._currentSearchResultIndex = -1;
@@ -57,7 +57,6 @@ WebInspector.SourceFrame = function(contentProvider)
     this._textEditor.setReadOnly(!this.canEditSource());
 
     this._shortcuts = {};
-    this.addShortcut(WebInspector.KeyboardShortcut.makeKey("s", WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta), this._commitEditing.bind(this));
     this.element.addEventListener("keydown", this._handleKeyDown.bind(this), false);
 
     this._sourcePosition = new WebInspector.StatusBarText("", "source-frame-cursor-position");
@@ -760,13 +759,6 @@ WebInspector.SourceFrame.prototype = {
     },
 
     /**
-     * @param {string} text
-     */
-    commitEditing: function(text)
-    {
-    },
-
-    /**
      * @param {!WebInspector.TextRange} textRange
      */
     selectionChanged: function(textRange)
@@ -813,16 +805,6 @@ WebInspector.SourceFrame.prototype = {
             e.consume(true);
     },
 
-    _commitEditing: function()
-    {
-        if (this._textEditor.readOnly())
-            return false;
-
-        var content = this._textEditor.text();
-        this.commitEditing(content);
-        return true;
-    },
-
     __proto__: WebInspector.View.prototype
 }