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

Issue 789473002: Introduce [Exposed(Arguments)] in IDL code generator. (Closed)

Created:
6 years ago by yhirano
Modified:
6 years ago
Reviewers:
haraken, Jens Widell, bashi
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Introduce [Exposed(Arguments)] in IDL code generator. This CL introduces [Exposed(Arguments)] form to "Exposed" extended attribute in addition to the existing [Exposed=(Value)] form. For example, [Exposed(Window f1, Worker f2)] exposes the qualified element to Window if "f1" is enabled and to Worker if "f2" is enabled. BUG=436770 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186945

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 9

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 16

Patch Set 9 : #

Patch Set 10 : #

Total comments: 19

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -37 lines) Patch
M Source/bindings/scripts/generate_global_constructors.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -10 lines 0 comments Download
M Source/bindings/scripts/idl_definitions.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +26 lines, -0 lines 0 comments Download
M Source/bindings/scripts/utilities.py View 1 2 3 4 5 6 7 8 3 chunks +23 lines, -1 line 0 comments Download
M Source/bindings/scripts/v8_utilities.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +78 lines, -26 lines 0 comments Download
M Source/bindings/tests/idls/core/TestInterface.idl View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/core/TestInterface2.idl View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (6 generated)
yhirano
PTAL I will update the wiki description after this CL lands.
6 years ago (2014-12-09 08:06:15 UTC) #3
Jens Widell
https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py#newcode89 Source/bindings/scripts/generate_global_constructors.py:89: exposed_global_names = extended_attributes.get('Exposed', 'Window').strip('()').split(',') Does this really work now? ...
6 years ago (2014-12-09 08:25:12 UTC) #5
yhirano
https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py#newcode89 Source/bindings/scripts/generate_global_constructors.py:89: exposed_global_names = extended_attributes.get('Exposed', 'Window').strip('()').split(',') On 2014/12/09 08:25:12, Jens Widell ...
6 years ago (2014-12-09 08:42:09 UTC) #6
Jens Widell
https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py#newcode89 Source/bindings/scripts/generate_global_constructors.py:89: exposed_global_names = extended_attributes.get('Exposed', 'Window').strip('()').split(',') On 2014/12/09 08:42:09, yhirano wrote: ...
6 years ago (2014-12-09 09:20:47 UTC) #7
yhirano
On 2014/12/09 09:20:47, Jens Widell wrote: > https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py > File Source/bindings/scripts/generate_global_constructors.py (right): > > https://codereview.chromium.org/789473002/diff/80001/Source/bindings/scripts/generate_global_constructors.py#newcode89 ...
6 years ago (2014-12-09 09:31:33 UTC) #8
yhirano
Fixed: https://codereview.chromium.org/771323004/diff/1/Source/bindings/scripts/utilities.py#newcode182
6 years ago (2014-12-09 10:12:00 UTC) #9
Jens Widell
(Sorry that I'm producing comments in batches...) https://codereview.chromium.org/789473002/diff/160001/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/789473002/diff/160001/Source/bindings/scripts/generate_global_constructors.py#newcode89 Source/bindings/scripts/generate_global_constructors.py:89: exposed_global_names = ...
6 years ago (2014-12-09 11:30:31 UTC) #10
yhirano
https://codereview.chromium.org/789473002/diff/160001/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/789473002/diff/160001/Source/bindings/scripts/generate_global_constructors.py#newcode89 Source/bindings/scripts/generate_global_constructors.py:89: exposed_global_names = extended_attributes.get('Exposed', 'Window').strip('()').split(',') On 2014/12/09 11:30:31, Jens Widell ...
6 years ago (2014-12-09 11:59:14 UTC) #12
Jens Widell
LGTM
6 years ago (2014-12-09 12:02:12 UTC) #13
haraken
LGTM with nits. https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/idl_definitions.py#newcode655 Source/bindings/scripts/idl_definitions.py:655: Each exposure has two property: exposed ...
6 years ago (2014-12-09 16:07:56 UTC) #15
Jens Widell
https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/idl_definitions.py#newcode656 Source/bindings/scripts/idl_definitions.py:656: corresponds to [Exposed(e r)]. Exposure(e) corresponds to [Exposed=e]. On ...
6 years ago (2014-12-09 16:19:23 UTC) #16
bashi
LGTM https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/generate_global_constructors.py#newcode85 Source/bindings/scripts/generate_global_constructors.py:85: if exposed_arguments is not None: nit: if exposed_arguments: ...
6 years ago (2014-12-09 23:42:19 UTC) #17
yhirano
https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/generate_global_constructors.py File Source/bindings/scripts/generate_global_constructors.py (right): https://codereview.chromium.org/789473002/diff/220001/Source/bindings/scripts/generate_global_constructors.py#newcode85 Source/bindings/scripts/generate_global_constructors.py:85: if exposed_arguments is not None: On 2014/12/09 23:42:19, bashi1 ...
6 years ago (2014-12-11 01:38:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789473002/240001
6 years ago (2014-12-11 08:08:41 UTC) #20
commit-bot: I haz the power
6 years ago (2014-12-11 11:51:40 UTC) #21
Message was sent while issue was closed.
Committed patchset #11 (id:240001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186945

Powered by Google App Engine
This is Rietveld 408576698