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

Issue 618373003: [bindings] partial interfaces should not violate componentization (Closed)

Created:
6 years, 2 months ago by tasak
Modified:
6 years, 2 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, dglazkov+blink, arv+blink, jamesr, mkwst+moarreviews_chromium.org
Project:
blink
Visibility:
Public.

Description

[bindings] partial interfaces should not violate componentization Design doc: https://docs.google.com/a/google.com/document/d/1TpqG_bWJfHFo6swv5zbqfjxHl_K31C307NvdyF1NAcU/edit https://docs.google.com/a/google.com/document/d/1TLOCAG1DrW7UdI_DVIclHeNn8rdHzDzK52gPPY8Uo5I/edit (idea A: core_idl_files: no partial interfaces in modules, core_idl_with_modules_dependency_files: partial interfaces in modules, webcore_testing_idl_files, webcore_testing_idl_with_modules_dependency_files: ditto) BUG=380523 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184083

Patch Set 1 : #

Patch Set 2 : Fixed http/tests/serviceworker/fetch\* regression #

Total comments: 97

Patch Set 3 : Fixed run-bindings-tests and added partial interface results #

Patch Set 4 : #

Total comments: 36

Patch Set 5 : #

Patch Set 6 : Added --target-component instead of --genearte-partial #

Total comments: 50

Patch Set 7 : #

Total comments: 64

Patch Set 8 : #

Total comments: 1

Patch Set 9 : Fixed gn build #

Patch Set 10 : WIP: ceil #

Patch Set 11 : Patch for landing #

Patch Set 12 : Fixed patch conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1302 lines, -344 lines) Patch
M Source/bindings/core/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -6 lines 0 comments Download
M Source/bindings/core/generated.gyp View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M Source/bindings/core/idl.gni View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M Source/bindings/core/idl.gypi View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/V8Binding.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/core/v8/WrapperTypeInfo.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/modules/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -11 lines 0 comments Download
M Source/bindings/modules/generated.gyp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M Source/bindings/modules/v8/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +54 lines, -4 lines 0 comments Download
M Source/bindings/modules/v8/ModuleBindingsInitializer.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M Source/bindings/modules/v8/generated.gni View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M Source/bindings/modules/v8/generated.gyp View 1 2 3 4 5 6 7 8 2 chunks +127 lines, -0 lines 0 comments Download
M Source/bindings/modules/v8/generated.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/scripts/aggregate_generated_bindings.py View 1 2 3 4 5 5 chunks +16 lines, -4 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.py View 1 2 3 4 5 6 7 8 9 6 chunks +29 lines, -9 lines 0 comments Download
M Source/bindings/scripts/compute_interfaces_info_overall.py View 1 2 3 4 5 6 7 2 chunks +33 lines, -5 lines 0 comments Download
A Source/bindings/scripts/generate_init_partial_interfaces.py View 1 2 3 4 5 6 7 1 chunk +84 lines, -0 lines 0 comments Download
M Source/bindings/scripts/idl_compiler.py View 1 2 3 4 5 6 7 4 chunks +13 lines, -4 lines 0 comments Download
M Source/bindings/scripts/idl_definitions.py View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/scripts/interface_dependency_resolver.py View 1 2 3 4 5 6 7 2 chunks +82 lines, -19 lines 0 comments Download
M Source/bindings/scripts/scripts.gni View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -2 lines 0 comments Download
M Source/bindings/scripts/utilities.py View 1 2 3 4 5 6 7 1 chunk +18 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 2 3 4 5 6 7 8 9 17 chunks +91 lines, -24 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_utilities.py View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 2 3 4 5 6 7 4 chunks +8 lines, -8 lines 0 comments Download
M Source/bindings/templates/interface.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +16 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +55 lines, -3 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 2 3 4 5 6 7 8 9 14 chunks +46 lines, -48 lines 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 3 4 5 6 7 7 chunks +41 lines, -4 lines 0 comments Download
A Source/bindings/templates/partial_interface.h View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A Source/bindings/templates/partial_interface.cpp View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M Source/bindings/templates/templates.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/core/TestInterface.idl View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M Source/bindings/tests/idls/modules/TestPartialInterface3.idl View 1 2 3 4 5 6 7 1 chunk +2 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +94 lines, -157 lines 0 comments Download
A Source/bindings/tests/results/modules/V8TestInterfacePartial.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 2 3 4 5 6 7 1 chunk +247 lines, -0 lines 0 comments Download
M Source/core/core.gni View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 chunks +21 lines, -15 lines 0 comments Download
M Source/modules/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M Source/modules/modules.gyp View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M Source/web/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
M Source/web/WebTestingSupport.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/web/web.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/bindings/main.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 45 (18 generated)
tasak
Would you review this CL?
6 years, 2 months ago (2014-10-02 08:45:34 UTC) #4
haraken
Thanks for the CL! May I ask you to add some comments (using the Rietvled ...
6 years, 2 months ago (2014-10-02 11:12:23 UTC) #5
tasak
On 2014/10/02 11:12:23, haraken wrote: > Thanks for the CL! > > May I ask ...
6 years, 2 months ago (2014-10-02 13:48:19 UTC) #6
haraken
On 2014/10/02 13:48:19, tasak wrote: > On 2014/10/02 11:12:23, haraken wrote: > > Thanks for ...
6 years, 2 months ago (2014-10-09 02:00:38 UTC) #7
tasak
On 2014/10/09 02:00:38, haraken wrote: > Sorry, the design document is clear enough to understand ...
6 years, 2 months ago (2014-10-09 02:29:45 UTC) #8
haraken
Overall, the approach looks good. The only part we might want to reduce complexity is ...
6 years, 2 months ago (2014-10-09 04:24:02 UTC) #9
tasak
Thank you for reviewing. https://codereview.chromium.org/618373003/diff/40001/Source/bindings/core/idl.gypi File Source/bindings/core/idl.gypi (right): https://codereview.chromium.org/618373003/diff/40001/Source/bindings/core/idl.gypi#newcode38 Source/bindings/core/idl.gypi:38: # Write lists of core ...
6 years, 2 months ago (2014-10-10 07:52:25 UTC) #13
bashi
I just glanced at the first half and haven't took a close look yet. will ...
6 years, 2 months ago (2014-10-10 09:48:11 UTC) #14
tasak
Thank you for reviewing. I removed codes which depend on old design (i.e. no core_idl_with_modules_dependency_files). ...
6 years, 2 months ago (2014-10-10 11:43:40 UTC) #16
tasak
https://codereview.chromium.org/618373003/diff/1440001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/618373003/diff/1440001/Source/bindings/core/v8/V8Binding.h#newcode1024 Source/bindings/core/v8/V8Binding.h:1024: typedef void (*InstallTemplateFunction)(v8::Handle<v8::FunctionTemplate>, v8::Isolate*); If moving this typedef to ...
6 years, 2 months ago (2014-10-14 05:28:21 UTC) #18
bashi
https://codereview.chromium.org/618373003/diff/840001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/618373003/diff/840001/Source/bindings/scripts/idl_definitions.py#newcode278 Source/bindings/scripts/idl_definitions.py:278: self.original_interface = None On 2014/10/10 11:43:40, tasak wrote: > ...
6 years, 2 months ago (2014-10-15 05:29:24 UTC) #19
tasak
Thank you for reviewing. https://codereview.chromium.org/618373003/diff/840001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/618373003/diff/840001/Source/bindings/scripts/idl_definitions.py#newcode278 Source/bindings/scripts/idl_definitions.py:278: self.original_interface = None On 2014/10/15 ...
6 years, 2 months ago (2014-10-15 11:24:19 UTC) #21
haraken
LGTM The following comments are just nits or things to be addressed in follow-up CLs. ...
6 years, 2 months ago (2014-10-16 04:24:09 UTC) #22
bashi
code generator stuff LGTM. (I didn't take closer look at overload resolution and domTemplate stuff, ...
6 years, 2 months ago (2014-10-17 02:23:24 UTC) #23
bashi
I think you need to write GN targets.
6 years, 2 months ago (2014-10-17 02:25:09 UTC) #24
tasak
https://codereview.chromium.org/618373003/diff/1480001/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp File Source/bindings/modules/v8/ModuleBindingsInitializer.cpp (right): https://codereview.chromium.org/618373003/diff/1480001/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp#newcode17 Source/bindings/modules/v8/ModuleBindingsInitializer.cpp:17: void initModulesPartialInterfaces(); On 2014/10/16 04:24:07, haraken wrote: > > ...
6 years, 2 months ago (2014-10-17 07:38:19 UTC) #26
tasak
brettw, would you review GN-related changes in this CL?
6 years, 2 months ago (2014-10-20 10:37:35 UTC) #28
brettw
I don't see anything weird in the .gn files. rubberstamp LGTM
6 years, 2 months ago (2014-10-20 16:46:25 UTC) #29
tasak
tkent, would you review public/ changes?
6 years, 2 months ago (2014-10-21 05:10:44 UTC) #31
tasak
On 2014/10/20 16:46:25, brettw wrote: > I don't see anything weird in the .gn files. ...
6 years, 2 months ago (2014-10-21 05:11:13 UTC) #32
tasak
On 2014/10/21 05:10:44, tasak wrote: > tkent, would you review public/ changes? Thank you for ...
6 years, 2 months ago (2014-10-21 07:22:14 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618373003/1580001
6 years, 2 months ago (2014-10-21 08:14:01 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/32765)
6 years, 2 months ago (2014-10-21 09:32:11 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618373003/1580001
6 years, 2 months ago (2014-10-21 09:38:48 UTC) #39
commit-bot: I haz the power
Failed to apply patch for Source/bindings/templates/interface.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-21 10:26:27 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618373003/1600001
6 years, 2 months ago (2014-10-21 10:41:45 UTC) #44
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 13:01:57 UTC) #45
Message was sent while issue was closed.
Committed patchset #12 (id:1600001) as 184083

Powered by Google App Engine
This is Rietveld 408576698