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

Side by Side Diff: Source/devtools/front_end/source_frame/SourceFrame.js

Issue 459833002: Revert of Revert of DevTools: Introduce module initializers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 importScript("../cm/codemirror.js");
32 importScript("../cm/css.js");
33 importScript("../cm/javascript.js");
34 importScript("../cm/xml.js");
35 importScript("../cm/htmlmixed.js");
36
37 importScript("../cm/matchbrackets.js");
38 importScript("../cm/closebrackets.js");
39 importScript("../cm/markselection.js");
40 importScript("../cm/comment.js");
41 importScript("../cm/overlay.js");
42
43 importScript("../cm/htmlembedded.js");
44 importScript("../cm/clike.js");
45 importScript("../cm/coffeescript.js");
46 importScript("../cm/php.js");
47 importScript("../cm/python.js");
48 importScript("../cm/shell.js");
49 importScript("CodeMirrorUtils.js");
50 importScript("CodeMirrorTextEditor.js");
51
52 /** 31 /**
53 * @extends {WebInspector.VBox} 32 * @extends {WebInspector.VBox}
54 * @constructor 33 * @constructor
55 * @implements {WebInspector.Replaceable} 34 * @implements {WebInspector.Replaceable}
56 * @param {!WebInspector.ContentProvider} contentProvider 35 * @param {!WebInspector.ContentProvider} contentProvider
57 */ 36 */
58 WebInspector.SourceFrame = function(contentProvider) 37 WebInspector.SourceFrame = function(contentProvider)
59 { 38 {
60 WebInspector.VBox.call(this); 39 WebInspector.VBox.call(this);
61 this.element.classList.add("script-view"); 40 this.element.classList.add("script-view");
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 1014
1036 /** 1015 /**
1037 * @param {?WebInspector.TextRange} from 1016 * @param {?WebInspector.TextRange} from
1038 * @param {?WebInspector.TextRange} to 1017 * @param {?WebInspector.TextRange} to
1039 */ 1018 */
1040 onJumpToPosition: function(from, to) 1019 onJumpToPosition: function(from, to)
1041 { 1020 {
1042 this._sourceFrame.onJumpToPosition(from, to); 1021 this._sourceFrame.onJumpToPosition(from, to);
1043 } 1022 }
1044 } 1023 }
1045
1046 importScript("GoToLineDialog.js");
1047 importScript("ResourceView.js");
1048 importScript("FontView.js");
1049 importScript("ImageView.js");
OLDNEW
« no previous file with comments | « Source/devtools/front_end/settings/module.json ('k') | Source/devtools/front_end/source_frame/_module.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698