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

Issue 474173002: IDL: Use IdlNullableType wrapper to represent nullable types (Closed)

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

Description

IDL: Use IdlNullableType wrapper to represent nullable types Replaces the |is_nullable| flag previously stored in IdlTypeBase. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180564

Patch Set 1 #

Total comments: 8

Patch Set 2 : alternative approach #

Total comments: 9

Patch Set 3 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -145 lines) Patch
M Source/bindings/scripts/idl_definitions.py View 5 chunks +21 lines, -17 lines 0 comments Download
M Source/bindings/scripts/idl_types.py View 1 2 10 chunks +63 lines, -111 lines 0 comments Download
M Source/bindings/scripts/v8_dictionary.py View 1 2 chunks +3 lines, -7 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 2 7 chunks +5 lines, -9 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
Jens Widell
PTAL I'm not convinced this is a good change overall. Nullable types are in most ...
6 years, 4 months ago (2014-08-15 07:13:49 UTC) #1
haraken
bashi-san: What do you think about this?
6 years, 4 months ago (2014-08-15 07:36:43 UTC) #2
haraken
LGTM. https://codereview.chromium.org/474173002/diff/1/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/474173002/diff/1/Source/bindings/scripts/idl_definitions.py#newcode802 Source/bindings/scripts/idl_definitions.py:802: element_type = type_node_to_type(sequence_child) Nit: element_type => sequence_type (or ...
6 years, 4 months ago (2014-08-15 07:43:57 UTC) #3
bashi
On 2014/08/15 07:36:43, haraken wrote: > bashi-san: What do you think about this? I think ...
6 years, 4 months ago (2014-08-15 07:56:51 UTC) #4
Jens Widell
https://codereview.chromium.org/474173002/diff/1/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/474173002/diff/1/Source/bindings/scripts/idl_definitions.py#newcode802 Source/bindings/scripts/idl_definitions.py:802: element_type = type_node_to_type(sequence_child) On 2014/08/15 07:43:57, haraken wrote: > ...
6 years, 4 months ago (2014-08-15 08:00:09 UTC) #5
haraken
https://codereview.chromium.org/474173002/diff/1/Source/bindings/scripts/idl_types.py File Source/bindings/scripts/idl_types.py (right): https://codereview.chromium.org/474173002/diff/1/Source/bindings/scripts/idl_types.py#newcode393 Source/bindings/scripts/idl_types.py:393: return self.inner_type.is_basic_type On 2014/08/15 08:00:09, Jens Widell wrote: > ...
6 years, 4 months ago (2014-08-15 08:11:08 UTC) #6
Jens Widell
On 2014/08/15 07:56:51, bashi1 wrote: > On 2014/08/15 07:36:43, haraken wrote: > > bashi-san: What ...
6 years, 4 months ago (2014-08-15 08:22:59 UTC) #7
bashi
I can't come up with a good way to avoid manual relaying either... so still ...
6 years, 4 months ago (2014-08-15 15:08:25 UTC) #8
Jens Widell
On 2014/08/15 15:08:25, bashi1 wrote: > I can't come up with a good way to ...
6 years, 4 months ago (2014-08-19 11:36:59 UTC) #9
Jens Widell
On 2014/08/15 15:08:25, bashi1 wrote: > I can't come up with a good way to ...
6 years, 4 months ago (2014-08-19 11:37:00 UTC) #10
haraken
On 2014/08/19 11:37:00, Jens Widell wrote: > On 2014/08/15 15:08:25, bashi1 wrote: > > I ...
6 years, 4 months ago (2014-08-19 12:03:50 UTC) #11
Nils Barth (inactive)
Hi Jens, PS #2 looks great: it removes a huge amount of boilerplate, and makes ...
6 years, 4 months ago (2014-08-19 13:44:14 UTC) #12
bashi
Thank you for uploading alternative approach. I don't have a strong opinion here, but if ...
6 years, 4 months ago (2014-08-19 13:51:42 UTC) #13
Nils Barth (inactive)
BTW, per bashi, I think you can remove the other relays, right? https://codereview.chromium.org/474173002/diff/40001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py ...
6 years, 4 months ago (2014-08-19 13:53:38 UTC) #14
Nils Barth (inactive)
Oh, and LGTM ;)
6 years, 4 months ago (2014-08-19 13:53:57 UTC) #15
haraken
> BTW, per bashi, I think you can remove the other relays, right? oh, then ...
6 years, 4 months ago (2014-08-19 13:57:21 UTC) #16
Jens Widell
Thanks all. PS#3 simplifies IdlTypeBase.__getattr__() per Nils' suggestions, makes some other minor changes to idl_types.py, ...
6 years, 4 months ago (2014-08-19 14:30:12 UTC) #17
Nils Barth (inactive)
(Latest is very clean, thanks!) https://codereview.chromium.org/474173002/diff/40001/Source/bindings/scripts/idl_types.py File Source/bindings/scripts/idl_types.py (right): https://codereview.chromium.org/474173002/diff/40001/Source/bindings/scripts/idl_types.py#newcode121 Source/bindings/scripts/idl_types.py:121: if not name.startswith('_'): On ...
6 years, 4 months ago (2014-08-19 15:25:15 UTC) #18
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 4 months ago (2014-08-19 15:42:33 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/474173002/120001
6 years, 4 months ago (2014-08-19 15:43:31 UTC) #20
commit-bot: I haz the power
6 years, 4 months ago (2014-08-19 15:47:05 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (120001) as 180564

Powered by Google App Engine
This is Rietveld 408576698