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

Issue 2608043002: DevTools: extract modules (with extensions) (Closed)

Created:
3 years, 11 months ago by chenwilliam
Modified:
3 years, 11 months ago
Reviewers:
dgozman, pfeldman
CC:
aboxhall, aboxhall+watch_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-style_chromium.org, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, Eric Willigers, je_julie, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, nektar+watch_chromium.org, nektarios, pfeldman+blink_chromium.org, rjwright, shans, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: extract modules (with extensions) This needs to land prior to my CL for speeding up closure by enforcing dependencies by poisoning namespaces: https://codereview.chromium.org/2588843002 Almost all of the changes were generated from extract_module.js with the exceptions of: - rebaselining initial-modules-load-expected.txt and open-with-rendering-option-enabled-expected.txt - added module->namespace mapping logic to Runtime.js - build_release_applications.py uses module_to_namespaces.json which is similar to Runtime.js namespace mapping (to be used by the dependency preprocessor in the other CL) - adding namespaces to externs.js BUG=none Review-Url: https://codereview.chromium.org/2608043002 Cr-Commit-Position: refs/heads/master@{#442469} Committed: https://chromium.googlesource.com/chromium/src/+/75219898c08d3019046d34d47150277d484f9bd4

Patch Set 1 #

Patch Set 2 : w/ artifacts #

Patch Set 3 : minor fixes #

Patch Set 4 : fixes #

Total comments: 4

Patch Set 5 : formatted all module.json #

Patch Set 6 : smaller patch - only extensions #

Patch Set 7 : refactor py #

Total comments: 16

Patch Set 8 : address CL comments #

Patch Set 9 : fix externs (PerfUI) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1309 lines, -2447 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector-unit/filtered-item-selection-dialog-filtering.js View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/components/file-path-scoring.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/initial-modules-load-expected.txt View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/source-frame.html View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-js/timeline-js-line-level-profile.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 7 10 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Runtime.js View 1 2 3 4 5 6 7 1 chunk +11 lines, -9 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/components/RequestAppBannerActionDelegate.js View 1 2 3 4 5 1 chunk +0 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/module.json View 1 2 3 4 5 2 chunks +0 lines, -8 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/components_lazy/GCActionDelegate.js View 1 2 3 4 5 1 chunk +0 lines, -19 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/components_lazy/LineLevelProfile.js View 1 2 3 4 5 1 chunk +0 lines, -151 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/components_lazy/module.json View 1 2 3 4 5 1 chunk +2 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/css_tracker/CSSTrackerView.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/css_tracker/module.json View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/externs.js View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inspector.json View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/layer_viewer/module.json View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/main/GCActionDelegate.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/main/RequestAppBannerActionDelegate.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/main/module.json View 1 2 3 4 5 8 chunks +89 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/module.json View 1 2 3 4 5 4 chunks +29 lines, -8 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/perf_ui/LineLevelProfile.js View 1 2 3 4 5 6 7 7 chunks +15 lines, -15 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/perf_ui/module.json View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/profiler/module.json View 1 2 3 4 5 3 chunks +8 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/quick_open/CommandMenu.js View 1 2 3 4 5 14 chunks +29 lines, -28 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js View 1 2 3 4 5 5 chunks +6 lines, -6 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/quick_open/filteredListWidget.css View 1 2 3 4 5 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/quick_open/module.json View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/source_frame/SourceCodeDiff.js View 1 2 3 4 5 16 chunks +28 lines, -28 lines 0 comments Download
A + third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js View 1 2 3 4 5 16 chunks +32 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/module.json View 1 2 3 4 5 1 chunk +26 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/CSSSourceFrame.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/EditingLocationHistoryManager.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/FilteredUISourceCodeListDelegate.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptOutlineDialog.js View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/sources/SourceCodeDiff.js View 1 2 3 4 5 1 chunk +0 lines, -277 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/SourcesView.js View 1 2 3 4 5 8 chunks +15 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/StyleSheetOutlineDialog.js View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js View 1 2 3 4 5 1 chunk +0 lines, -685 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/module.json View 1 2 3 4 5 6 7 16 chunks +98 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline/module.json View 1 2 3 4 5 6 chunks +26 lines, -8 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/ui_lazy/CommandMenu.js View 1 2 3 4 5 1 chunk +0 lines, -340 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/ui_lazy/FilteredListWidget.js View 1 2 3 4 5 1 chunk +0 lines, -521 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/ui_lazy/filteredListWidget.css View 1 2 3 4 5 1 chunk +0 lines, -111 lines 0 comments Download
D third_party/WebKit/Source/devtools/front_end/ui_lazy/module.json View 1 2 3 4 5 6 7 3 chunks +1 line, -20 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/unit_test_runner.json View 1 2 3 4 5 6 1 chunk +16 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/build/build_release_applications.py View 1 2 3 4 5 6 3 chunks +9 lines, -5 lines 0 comments Download
A third_party/WebKit/Source/devtools/scripts/extract_module/extract_module.js View 1 2 3 4 5 6 7 1 chunk +749 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/scripts/special_case_namespaces.json View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (16 generated)
chenwilliam
PTAL. It's a big patch so it might be helpful to review the top of ...
3 years, 11 months ago (2017-01-05 20:21:16 UTC) #5
pfeldman
Could you upload one with no formatting changes to module.json? I'd like to see changes ...
3 years, 11 months ago (2017-01-05 20:27:53 UTC) #6
chenwilliam
PTAL. I've uploaded a CL w/ a cleaner diff of the module.json files: https://codereview.chromium.org/2612383002 (There's ...
3 years, 11 months ago (2017-01-05 22:40:25 UTC) #7
pfeldman
https://codereview.chromium.org/2608043002/diff/30001/third_party/WebKit/Source/devtools/front_end/components/module.json File third_party/WebKit/Source/devtools/front_end/components/module.json (right): https://codereview.chromium.org/2608043002/diff/30001/third_party/WebKit/Source/devtools/front_end/components/module.json#newcode2 third_party/WebKit/Source/devtools/front_end/components/module.json:2: "extensions": [ On 2017/01/05 22:40:25, chenwilliam wrote: > On ...
3 years, 11 months ago (2017-01-06 00:07:09 UTC) #8
alancutter (OOO until 2018)
https://codereview.chromium.org/2608043002/diff/30001/third_party/WebKit/Source/devtools/front_end/components/module.json File third_party/WebKit/Source/devtools/front_end/components/module.json (right): https://codereview.chromium.org/2608043002/diff/30001/third_party/WebKit/Source/devtools/front_end/components/module.json#newcode2 third_party/WebKit/Source/devtools/front_end/components/module.json:2: "extensions": [ On 2017/01/06 at 00:07:09, pfeldman wrote: > ...
3 years, 11 months ago (2017-01-06 00:26:43 UTC) #10
pfeldman
> The side-by-side diff accounts for the change in indentation and is much easier > ...
3 years, 11 months ago (2017-01-06 18:46:55 UTC) #11
dgozman
On 2017/01/06 18:46:55, pfeldman wrote: > > The side-by-side diff accounts for the change in ...
3 years, 11 months ago (2017-01-06 19:34:20 UTC) #12
chenwilliam
PTAL - I uploaded a patchset that only affects the files that changed extensions + ...
3 years, 11 months ago (2017-01-07 03:22:52 UTC) #15
chenwilliam
PTAL - just uploaded a patchset with a small refactoring of the python (module -> ...
3 years, 11 months ago (2017-01-09 19:13:19 UTC) #17
pfeldman
https://codereview.chromium.org/2608043002/diff/110001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2608043002/diff/110001/third_party/WebKit/Source/devtools/BUILD.gn#newcode455 third_party/WebKit/Source/devtools/BUILD.gn:455: "front_end/sources/dialog.css", Why is this guy getting here? https://codereview.chromium.org/2608043002/diff/110001/third_party/WebKit/Source/devtools/front_end/Runtime.js File ...
3 years, 11 months ago (2017-01-09 19:29:48 UTC) #18
chenwilliam
PTAL. https://codereview.chromium.org/2608043002/diff/110001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2608043002/diff/110001/third_party/WebKit/Source/devtools/BUILD.gn#newcode455 third_party/WebKit/Source/devtools/BUILD.gn:455: "front_end/sources/dialog.css", On 2017/01/09 19:29:48, pfeldman wrote: > Why ...
3 years, 11 months ago (2017-01-09 22:49:16 UTC) #21
pfeldman
lgtm, we can move dialog.css later.
3 years, 11 months ago (2017-01-09 23:19:08 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2608043002/130001
3 years, 11 months ago (2017-01-09 23:37:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2608043002/150001
3 years, 11 months ago (2017-01-10 00:03:52 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 04:11:15 UTC) #31
Message was sent while issue was closed.
Committed patchset #9 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/75219898c08d3019046d34d47150...

Powered by Google App Engine
This is Rietveld 408576698