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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/cm_modes/DefaultCodeMirrorMimeMode.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698