Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / devtools / front_end / cm_modes / DefaultCodeMirrorMimeMode.js
blob2b63c9aade0026639a5cba7207b892df8949d784
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
3 // found in the LICENSE file.
5 /**
6 * @constructor
7 * @implements {WebInspector.CodeMirrorMimeMode}
8 */
9 WebInspector.DefaultCodeMirrorMimeMode = function()
13 WebInspector.DefaultCodeMirrorMimeMode.prototype = {
14 /**
15 * @param {!Runtime.Extension} extension
16 * @override
18 install: function(extension)
20 var modeFileName = extension.descriptor()["fileName"];
21 var modeContent = extension.module().resource(modeFileName);
22 self.eval(modeContent + "\n//# sourceURL=" + modeFileName);