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

Issue 561633003: IDL: Enumerations support in dictionaries (Closed)

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

Description

IDL: Enumerations support in dictionaries Enumerations are essentially the same as Strings, but those values are restricted to specific values. When a value is invalid, we should throw an exception as the spec requires[1]. [1] http://heycam.github.io/webidl/#es-enumeration BUG=321462 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181729

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 2

Patch Set 3 : NULL -> 0 #

Patch Set 4 : Rebase & style #

Total comments: 1

Patch Set 5 : Remove parens #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -23 lines) Patch
M LayoutTests/fast/dom/idl-dictionary-unittest.html View 4 chunks +13 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/idl-dictionary-unittest-expected.txt View 3 chunks +9 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_dictionary.py View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 3 chunks +4 lines, -2 lines 0 comments Download
M Source/bindings/templates/dictionary_v8.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/templates/dictionary_v8.cpp View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M Source/bindings/tests/idls/core/TestDictionary.idl View 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/TestDictionary.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/TestDictionary.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestDictionary.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/tests/results/core/V8TestDictionary.cpp View 1 2 3 2 chunks +41 lines, -14 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/testing/DictionaryTest.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/testing/DictionaryTest.cpp View 3 chunks +9 lines, -0 lines 0 comments Download
M Source/core/testing/InternalDictionary.idl View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
bashi
Haraken-san, could you take a look when you have time?
6 years, 3 months ago (2014-09-10 05:58:52 UTC) #2
Jens Widell
https://codereview.chromium.org/561633003/diff/1/Source/bindings/templates/dictionary_v8.cpp File Source/bindings/templates/dictionary_v8.cpp (right): https://codereview.chromium.org/561633003/diff/1/Source/bindings/templates/dictionary_v8.cpp#newcode16 Source/bindings/templates/dictionary_v8.cpp:16: {{cpp_class}}* {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value, ExceptionState& exceptionState) This sort ...
6 years, 3 months ago (2014-09-10 06:20:15 UTC) #4
bashi
https://codereview.chromium.org/561633003/diff/1/Source/bindings/templates/dictionary_v8.cpp File Source/bindings/templates/dictionary_v8.cpp (right): https://codereview.chromium.org/561633003/diff/1/Source/bindings/templates/dictionary_v8.cpp#newcode16 Source/bindings/templates/dictionary_v8.cpp:16: {{cpp_class}}* {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value, ExceptionState& exceptionState) On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 07:21:04 UTC) #5
Jens Widell
LGTM https://codereview.chromium.org/561633003/diff/1/Source/bindings/templates/dictionary_v8.cpp File Source/bindings/templates/dictionary_v8.cpp (right): https://codereview.chromium.org/561633003/diff/1/Source/bindings/templates/dictionary_v8.cpp#newcode16 Source/bindings/templates/dictionary_v8.cpp:16: {{cpp_class}}* {{v8_class}}::toImpl(v8::Isolate* isolate, v8::Handle<v8::Value> v8Value, ExceptionState& exceptionState) > ...
6 years, 3 months ago (2014-09-10 08:31:11 UTC) #6
haraken
LGTM https://codereview.chromium.org/561633003/diff/20001/Source/bindings/tests/results/V8TestDictionary.cpp File Source/bindings/tests/results/V8TestDictionary.cpp (right): https://codereview.chromium.org/561633003/diff/20001/Source/bindings/tests/results/V8TestDictionary.cpp#newcode37 Source/bindings/tests/results/V8TestDictionary.cpp:37: return NULL; return 0;
6 years, 3 months ago (2014-09-10 08:37:55 UTC) #7
bashi
Thank you for review all! https://codereview.chromium.org/561633003/diff/20001/Source/bindings/tests/results/V8TestDictionary.cpp File Source/bindings/tests/results/V8TestDictionary.cpp (right): https://codereview.chromium.org/561633003/diff/20001/Source/bindings/tests/results/V8TestDictionary.cpp#newcode37 Source/bindings/tests/results/V8TestDictionary.cpp:37: return NULL; On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 08:45:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/561633003/40001
6 years, 3 months ago (2014-09-10 08:46:49 UTC) #10
commit-bot: I haz the power
Failed to apply patch for Source/bindings/tests/results/TestDictionary.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 3 months ago (2014-09-10 09:47:19 UTC) #12
bashi
https://codereview.chromium.org/561633003/diff/60001/Source/bindings/scripts/v8_dictionary.py File Source/bindings/scripts/v8_dictionary.py (right): https://codereview.chromium.org/561633003/diff/60001/Source/bindings/scripts/v8_dictionary.py#newcode110 Source/bindings/scripts/v8_dictionary.py:110: if (idl_type.impl_should_use_nullable_container or idl_type.is_enum or idl_type.is_string_type): Umm.. Need to ...
6 years, 3 months ago (2014-09-10 11:09:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bashi@chromium.org/561633003/80001
6 years, 3 months ago (2014-09-10 11:17:10 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 13:12:50 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as 181729

Powered by Google App Engine
This is Rietveld 408576698