Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / devtools / front_end / modules.js
1 /*
2  * Copyright (C) 2014 Google Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above
12  * copyright notice, this list of conditions and the following disclaimer
13  * in the documentation and/or other materials provided with the
14  * distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. AND ITS CONTRIBUTORS
17  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE INC.
20  * OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28
29 /**
30  * @type {!Array.<!WebInspector.ModuleManager.ModuleDescriptor>}
31  */
32 var allDescriptors = [
33     {
34         name: "main",
35         extensions: [
36             {
37                 type: "@WebInspector.ActionDelegate",
38                 bindings: [
39                     {
40                         platform: "windows,linux",
41                         shortcut: "F5 Ctrl+R"
42                     },
43                     {
44                         platform: "mac",
45                         shortcut: "Meta+R"
46                     }
47                 ],
48                 className: "WebInspector.Main.ReloadActionDelegate"
49             },
50             {
51                 type: "@WebInspector.ActionDelegate",
52                 bindings: [
53                     {
54                         platform: "windows,linux",
55                         shortcut: "Shift+F5 Ctrl+F5 Ctrl+Shift+F5 Shift+Ctrl+R"
56                     },
57                     {
58                         platform: "mac",
59                         shortcut: "Shift+Meta+R"
60                     }
61                 ],
62                 className: "WebInspector.Main.HardReloadActionDelegate"
63             },
64             {
65                 type: "@WebInspector.ActionDelegate",
66                 bindings: [
67                     {
68                         shortcut: "Esc"
69                     }
70                 ],
71                 className: "WebInspector.InspectorView.DrawerToggleActionDelegate"
72             },
73             {
74                 type: "@WebInspector.ActionDelegate",
75                 bindings: [
76                     {
77                         shortcut: "Alt+R"
78                     }
79                 ],
80                 className: "WebInspector.Main.DebugReloadActionDelegate"
81             }
82         ]
83     },
84     {
85         name: "elements",
86         extensions: [
87             {
88                 type: "@WebInspector.Panel",
89                 name: "elements",
90                 title: "Elements",
91                 order: 0,
92                 className: "WebInspector.ElementsPanel"
93             },
94             {
95                 type: "@WebInspector.ContextMenu.Provider",
96                 contextTypes: ["WebInspector.RemoteObject", "WebInspector.DOMNode"],
97                 className: "WebInspector.ElementsPanel.ContextMenuProvider"
98             },
99             {
100                 type: "drawer-view",
101                 name: "emulation",
102                 title: "Emulation",
103                 order: "10",
104                 className: "WebInspector.OverridesView"
105             },
106             {
107                 type: "drawer-view",
108                 name: "rendering",
109                 title: "Rendering",
110                 order: "11",
111                 className: "WebInspector.RenderingOptionsView"
112             },
113             {
114                 type: "@WebInspector.Renderer",
115                 contextTypes: ["WebInspector.DOMNode"],
116                 className: "WebInspector.ElementsTreeOutline.Renderer"
117             },
118             {
119                 type: "@WebInspector.Revealer",
120                 contextTypes: ["WebInspector.DOMNode"],
121                 className: "WebInspector.ElementsPanel.DOMNodeRevealer"
122             }
123         ],
124         scripts: [ "ElementsPanel.js" ]
125     },
126     {
127         name: "network",
128         extensions: [
129             {
130                 type: "@WebInspector.Panel",
131                 name: "network",
132                 title: "Network",
133                 order: 1,
134                 className: "WebInspector.NetworkPanel"
135             },
136             {
137                 type: "@WebInspector.ContextMenu.Provider",
138                 contextTypes: ["WebInspector.NetworkRequest", "WebInspector.Resource", "WebInspector.UISourceCode"],
139                 className: "WebInspector.NetworkPanel.ContextMenuProvider"
140             },
141             {
142                 type: "@WebInspector.Revealer",
143                 contextTypes: ["WebInspector.NetworkRequest"],
144                 className: "WebInspector.NetworkPanel.RequestRevealer"
145             }
146         ],
147         scripts: [ "NetworkPanel.js" ]
148     },
149     {
150         name: "codemirror",
151         extensions: [
152             {
153                 type: "@WebInspector.InplaceEditor",
154                 className: "WebInspector.CodeMirrorUtils"
155             },
156             {
157               type: "@WebInspector.TokenizerFactory",
158               className: "WebInspector.CodeMirrorUtils.TokenizerFactory"
159             },
160         ],
161         scripts: [ "CodeMirrorTextEditor.js" ]
162     },
163     {
164         name: "sources",
165         extensions: [
166             {
167                 type: "@WebInspector.Panel",
168                 name: "sources",
169                 title: "Sources",
170                 order: 2,
171                 className: "WebInspector.SourcesPanel"
172             },
173             {
174                 type: "@WebInspector.ContextMenu.Provider",
175                 contextTypes: ["WebInspector.UISourceCode", "WebInspector.RemoteObject"],
176                 className: "WebInspector.SourcesPanel.ContextMenuProvider"
177             },
178             {
179                 type: "@WebInspector.SearchScope",
180                 className: "WebInspector.SourcesSearchScope"
181             },
182             {
183                 type: "drawer-view",
184                 name: "search",
185                 title: "Search",
186                 order: "1",
187                 className: "WebInspector.SearchView"
188             },
189             {
190                 type: "@WebInspector.DrawerEditor",
191                 className: "WebInspector.SourcesPanel.DrawerEditor"
192             },
193             {
194                 type: "@WebInspector.Revealer",
195                 contextTypes: ["WebInspector.UILocation"],
196                 className: "WebInspector.SourcesPanel.UILocationRevealer"
197             },
198             {
199                 type: "@WebInspector.SourcesView.EditorAction",
200                 className: "WebInspector.InplaceFormatterEditorAction"
201             },
202             {
203                 type: "@WebInspector.SourcesView.EditorAction",
204                 className: "WebInspector.ScriptFormatterEditorAction"
205             },
206             {
207                 type: "navigator-view",
208                 name: "sources",
209                 title: "Sources",
210                 order: 1,
211                 className: "WebInspector.SourcesNavigatorView"
212             },
213             {
214                 type: "navigator-view",
215                 name: "contentScripts",
216                 title: "Content scripts",
217                 order: 2,
218                 className: "WebInspector.ContentScriptsNavigatorView"
219             },
220             {
221                 type: "navigator-view",
222                 name: "snippets",
223                 title: "Snippets",
224                 order: 3,
225                 className: "WebInspector.SnippetsNavigatorView"
226             },
227             {
228                 type: "@WebInspector.ActionDelegate",
229                 bindings: [
230                     {
231                         platform: "mac",
232                         shortcut: "Meta+O Meta+P"
233                     },
234                     {
235                         platform: "windows,linux",
236                         shortcut: "Ctrl+O Ctrl+P"
237                     }
238                 ],
239                 className: "WebInspector.SourcesPanel.ShowGoToSourceDialogActionDelegate"
240             }
241         ],
242         scripts: [ "SourcesPanel.js" ]
243     },
244     {
245         name: "timeline",
246         extensions: [
247             {
248                 type: "@WebInspector.Panel",
249                 name: "timeline",
250                 title: "Timeline",
251                 order: 3,
252                 className: "WebInspector.TimelinePanel"
253             }
254         ],
255         scripts: [ "TimelinePanel.js" ]
256     },
257     {
258         name: "profiles",
259         extensions: [
260             {
261                 type: "@WebInspector.Panel",
262                 name: "profiles",
263                 title: "Profiles",
264                 order: 4,
265                 className: "WebInspector.ProfilesPanel"
266             },
267             {
268                 type: "@WebInspector.ContextMenu.Provider",
269                 contextTypes: ["WebInspector.RemoteObject"],
270                 className: "WebInspector.ProfilesPanel.ContextMenuProvider"
271             }
272         ],
273         scripts: [ "ProfilesPanel.js" ]
274     },
275     {
276         name: "resources",
277         extensions: [
278             {
279                 type: "@WebInspector.Panel",
280                 name: "resources",
281                 title: "Resources",
282                 order: 5,
283                 className: "WebInspector.ResourcesPanel"
284             },
285             {
286                 type: "@WebInspector.Revealer",
287                 contextTypes: ["WebInspector.Resource"],
288                 className: "WebInspector.ResourcesPanel.ResourceRevealer"
289             }
290         ],
291         scripts: [ "ResourcesPanel.js" ]
292     },
293     {
294         name: "audits",
295         extensions: [
296             {
297                 type: "@WebInspector.Panel",
298                 name: "audits",
299                 title: "Audits",
300                 order: 6,
301                 className: "WebInspector.AuditsPanel"
302             }
303         ],
304         scripts: [ "AuditsPanel.js" ]
305     },
306     {
307         name: "console",
308         extensions: [
309             {
310                 type: "@WebInspector.Panel",
311                 name: "console",
312                 title: "Console",
313                 order: 20,
314                 className: "WebInspector.ConsolePanel"
315             },
316             {
317                 type: "drawer-view",
318                 name: "console",
319                 title: "Console",
320                 order: "0",
321                 className: "WebInspector.ConsolePanel.WrapperView"
322             },
323             {
324                 type: "@WebInspector.Revealer",
325                 contextTypes: ["WebInspector.ConsoleModel"],
326                 className: "WebInspector.ConsolePanel.ConsoleRevealer"
327             },
328             {
329                 type: "@WebInspector.ActionDelegate",
330                 bindings: [
331                     {
332                         shortcut: "Ctrl+`"
333                     }
334                 ],
335                 className: "WebInspector.ConsoleView.ShowConsoleActionDelegate"
336             }
337         ],
338         scripts: [ "ConsolePanel.js" ]
339     },
340     {
341         name: "settings",
342         extensions: [
343             {
344                 type: "@WebInspector.ActionDelegate",
345                 bindings: [
346                     {
347                         shortcut: "F1 Shift+?"
348                     }
349                 ],
350                 className: "WebInspector.SettingsController.SettingsScreenActionDelegate"
351             }
352         ]
353     },
354     {
355         name: "extensions",
356         extensions: [
357             {
358                 type: "@WebInspector.ExtensionServerAPI",
359                 className: "WebInspector.ExtensionServer"
360             }
361         ],
362         scripts: [ "ExtensionServer.js" ]
363     },
364     {
365         name: "layers",
366         extensions: [
367             {
368                 type: "@WebInspector.Panel",
369                 name: "layers",
370                 title: "Layers",
371                 order: 7,
372                 className: "WebInspector.LayersPanel"
373             },
374             {
375                 type: "@WebInspector.Revealer",
376                 contextTypes: ["WebInspector.LayerTreeSnapshot"],
377                 className: "WebInspector.LayersPanel.LayerTreeRevealer"
378             }
379         ],
380         scripts: [ "LayersPanel.js" ]
381     },
382     {
383         name: "handler-registry",
384         extensions: [
385             {
386                 type: "@WebInspector.ContextMenu.Provider",
387                 contextTypes: ["WebInspector.UISourceCode", "WebInspector.Resource", "WebInspector.NetworkRequest", "Node"],
388                 className: "WebInspector.HandlerRegistry.ContextMenuProvider"
389             }
390         ]
391     }
392 ];