| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @constructor | 6 * @constructor |
| 7 * @implements {WebInspector.CodeMirrorMimeMode} | 7 * @implements {TextEditor.CodeMirrorMimeMode} |
| 8 */ | 8 */ |
| 9 WebInspector.DefaultCodeMirrorMimeMode = function() | 9 CmModes.DefaultCodeMirrorMimeMode = function() |
| 10 { | 10 { |
| 11 } | 11 } |
| 12 | 12 |
| 13 WebInspector.DefaultCodeMirrorMimeMode.prototype = { | 13 CmModes.DefaultCodeMirrorMimeMode.prototype = { |
| 14 /** | 14 /** |
| 15 * @param {!Runtime.Extension} extension | 15 * @param {!Runtime.Extension} extension |
| 16 * @override | 16 * @override |
| 17 */ | 17 */ |
| 18 install: function(extension) | 18 install: function(extension) |
| 19 { | 19 { |
| 20 var modeFileName = extension.descriptor()["fileName"]; | 20 var modeFileName = extension.descriptor()["fileName"]; |
| 21 var modeContent = extension.module().resource(modeFileName); | 21 var modeContent = extension.module().resource(modeFileName); |
| 22 self.eval(modeContent + "\n//# sourceURL=" + modeFileName); | 22 self.eval(modeContent + "\n//# sourceURL=" + modeFileName); |
| 23 } | 23 } |
| 24 } | 24 } |
| OLD | NEW |