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

Issue 2494973002: bindings: Stop using Nullable<T> in dictionary impl (Closed)

Created:
4 years, 1 month ago by bashi
Modified:
4 years, 1 month ago
Reviewers:
haraken, peria, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bindings: Stop using Nullable<T> in dictionary impl Nullable<T> requires complete definition of T. This could be a problem when we want to use forward declaration to avoid cycler dependency. Stop using Nullable<T> and use flags instead to implement hasXXX() methods. BUG=662403 Committed: https://crrev.com/827df14d32e901f5b7fee5a4e8fb05a56754ef44 Cr-Commit-Position: refs/heads/master@{#431720}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments addressed #

Patch Set 3 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -176 lines) Patch
M third_party/WebKit/Source/bindings/scripts/v8_dictionary.py View 1 3 chunks +9 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_types.py View 1 chunk +0 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/dictionary_impl.cpp.tmpl View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/dictionary_impl.h.tmpl View 1 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h View 2 chunks +140 lines, -127 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.cpp View 1 2 1 chunk +326 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.h View 3 chunks +16 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.cpp View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceEventInit.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceEventInit.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestPermissiveDictionary.h View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestPermissiveDictionary.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
bashi
PTAL Split from https://codereview.chromium.org/2471393004/ https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py File third_party/WebKit/Source/bindings/scripts/v8_dictionary.py (right): https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py#newcode224 third_party/WebKit/Source/bindings/scripts/v8_dictionary.py:224: 'has_flag_variable': has_flag_variable, Will re-order this.
4 years, 1 month ago (2016-11-11 07:05:37 UTC) #4
Yuki
LGTM. https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py File third_party/WebKit/Source/bindings/scripts/v8_dictionary.py (right): https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py#newcode224 third_party/WebKit/Source/bindings/scripts/v8_dictionary.py:224: 'has_flag_variable': has_flag_variable, What about |nullable_indicator_name|?
4 years, 1 month ago (2016-11-11 07:34:39 UTC) #7
peria
https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py File third_party/WebKit/Source/bindings/scripts/v8_dictionary.py (right): https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py#newcode191 third_party/WebKit/Source/bindings/scripts/v8_dictionary.py:191: has_flag_variable = None This variable name is confusing. It ...
4 years, 1 month ago (2016-11-11 07:45:16 UTC) #10
bashi
https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py File third_party/WebKit/Source/bindings/scripts/v8_dictionary.py (right): https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py#newcode224 third_party/WebKit/Source/bindings/scripts/v8_dictionary.py:224: 'has_flag_variable': has_flag_variable, On 2016/11/11 07:34:39, Yuki wrote: > What ...
4 years, 1 month ago (2016-11-11 07:52:57 UTC) #13
peria
LGTM On 2016/11/11 07:52:57, bashi1 wrote: > https://codereview.chromium.org/2494973002/diff/1/third_party/WebKit/Source/bindings/templates/dictionary_impl.cpp.tmpl > File third_party/WebKit/Source/bindings/templates/dictionary_impl.cpp.tmpl > (right): > > ...
4 years, 1 month ago (2016-11-11 07:59:23 UTC) #14
haraken
LGTM
4 years, 1 month ago (2016-11-11 08:54:48 UTC) #15
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/2494973002/40001
4 years, 1 month ago (2016-11-12 01:10:06 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-12 01:16:32 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 01:19:06 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/827df14d32e901f5b7fee5a4e8fb05a56754ef44
Cr-Commit-Position: refs/heads/master@{#431720}

Powered by Google App Engine
This is Rietveld 408576698