RESOLVED FIXED 66776
Web Inspector: annotate and prepare for compilation first 14 files within 4 modules.
https://bugs.webkit.org/show_bug.cgi?id=66776
Summary Web Inspector: annotate and prepare for compilation first 14 files within 4 m...
Pavel Feldman
Reported 2011-08-23 07:13:48 PDT
Here is the module structure: 1. jsmodule_core: Inspector-agnostic utilities, should compile without WebInspector 2. jsmodule_env: environment used by most of the front-end code: settings, metrics, host 3. jsmodule_sdk: protocol wrappers potentially reusable in alternate front-ends 4. jsmodule_ui: assorted UI code --module jsmodule_core:2 \ --js Source/WebCore/inspector/front-end/utilities.js \ --js Source/WebCore/inspector/front-end/treeoutline.js \ --module jsmodule_env:3 \ --js Source/WebCore/inspector/front-end/Settings.js \ --js Source/WebCore/inspector/front-end/UserMetrics.js \ --js Source/WebCore/inspector/front-end/InspectorFrontendHostStub.js \ --module jsmodule_sdk:4:jsmodule_core,jsmodule_env \ --js Source/WebCore/inspector/front-end/Object.js \ --js Source/WebCore/inspector/front-end/DOMAgent.js \ --js Source/WebCore/inspector/front-end/Script.js \ --js Source/WebCore/inspector/front-end/DebuggerModel.js \ --module jsmodule_ui:5:jsmodule_sdk \ --js Source/WebCore/inspector/front-end/View.js \ --js Source/WebCore/inspector/front-end/Placard.js \ --js Source/WebCore/inspector/front-end/Popover.js \ --js Source/WebCore/inspector/front-end/ContextMenu.js \ --js Source/WebCore/inspector/front-end/SoftContextMenu.js
Attachments
Patch (34.13 KB, patch)
2011-08-23 08:22 PDT, Pavel Feldman
no flags
Patch (36.00 KB, patch)
2011-08-23 09:44 PDT, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2011-08-23 08:22:39 PDT
Pavel Feldman
Comment 2 2011-08-23 09:44:13 PDT
Andrey Kosyakov
Comment 3 2011-08-23 09:57:50 PDT
Comment on attachment 104848 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=104848&action=review > Source/WebCore/inspector/compile-front-end.sh:54 > + --externs Source/WebCore/inspector/front-end/externs.js \ > + --externs Source/WebCore/inspector/front-end/protocol-externs.js \ > + --module jsmodule_core:2 \ > + --js Source/WebCore/inspector/front-end/utilities.js \ > + --js Source/WebCore/inspector/front-end/treeoutline.js \ > + --module jsmodule_env:3 \ > + --js Source/WebCore/inspector/front-end/Settings.js \ > + --js Source/WebCore/inspector/front-end/UserMetrics.js \ > + --js Source/WebCore/inspector/front-end/InspectorFrontendHostStub.js \ > + --module jsmodule_sdk:4:jsmodule_core,jsmodule_env \ > + --js Source/WebCore/inspector/front-end/Object.js \ > + --js Source/WebCore/inspector/front-end/DOMAgent.js \ > + --js Source/WebCore/inspector/front-end/Script.js \ > + --js Source/WebCore/inspector/front-end/DebuggerModel.js \ > + --module jsmodule_ui:5:jsmodule_sdk \ > + --js Source/WebCore/inspector/front-end/View.js \ > + --js Source/WebCore/inspector/front-end/Placard.js \ > + --js Source/WebCore/inspector/front-end/Popover.js \ > + --js Source/WebCore/inspector/front-end/ContextMenu.js \ > + --js Source/WebCore/inspector/front-end/SoftContextMenu.js Now that this is growing, I'd suggest to put this in a more declarative way, e.g. JSMODULE_SDK_SRC=Object.js DOMAgent.js SCript.js DebuggerModel.js JSMODULE_SDK_DEPS=core,env And then generate jscompiler command line based on these declarations.
Pavel Feldman
Comment 4 2011-08-23 10:02:44 PDT
> JSMODULE_SDK_SRC=Object.js DOMAgent.js SCript.js DebuggerModel.js > JSMODULE_SDK_DEPS=core,env > > And then generate jscompiler command line based on these declarations. I don't think this is the form and the script we will be using long term + there are bigger problems such as compiler.jar usage. I wouldn't invest into inventing declarative language for this use case.
Pavel Feldman
Comment 5 2011-08-24 03:19:17 PDT
Note You need to log in before you can comment on or make changes to this bug.