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

Issue 2057273002: [OriginTrials] Support OriginTrialEnabled IDL attribute on constants (Closed)

Created:
4 years, 6 months ago by iclelland
Modified:
4 years, 6 months ago
Reviewers:
haraken, chasej, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org, chasej+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[OriginTrials] Support OriginTrialEnabled IDL attribute on constants BUG=619092 Committed: https://crrev.com/9500e40f0af7830f1024693b715d5abb6a7e37d4 Cr-Commit-Position: refs/heads/master@{#400390}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments from PS#1 #

Total comments: 14

Patch Set 3 : Addressing comments from PS#2 #

Total comments: 8

Patch Set 4 : Make constants immutable, get interface template properly, improve efficiency #

Total comments: 2

Patch Set 5 : Move signature creation out of for loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -50 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/disabled-worker.js View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/enabled-worker.js View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/origin_trials/resources/origin_trials.js View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp View 1 2 3 3 chunks +26 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/code_generator_v8.py View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_attributes.py View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_interface.py View 3 chunks +25 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_utilities.py View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/constants.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface_base.cpp View 1 2 3 4 2 chunks +21 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/partial_interface.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.h View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 4 4 chunks +38 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/testing/WorkerInternalsFrobulate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/testing/WorkerInternalsFrobulate.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
iclelland
+r chasej: for origin trials, but PTAL at everything +r haraken for bindings generation Thanks!
4 years, 6 months ago (2016-06-10 17:38:06 UTC) #3
iclelland
This will be the starting point for allowing v8 methods to be enabled through Origin ...
4 years, 6 months ago (2016-06-10 17:39:04 UTC) #4
chasej
https://codereview.chromium.org/2057273002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py File third_party/WebKit/Source/bindings/scripts/v8_utilities.py (right): https://codereview.chromium.org/2057273002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py#newcode126 third_party/WebKit/Source/bindings/scripts/v8_utilities.py:126: def for_feature(items, feature_name): Should this have more specific name ...
4 years, 6 months ago (2016-06-10 20:09:30 UTC) #5
iclelland
https://codereview.chromium.org/2057273002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py File third_party/WebKit/Source/bindings/scripts/v8_utilities.py (right): https://codereview.chromium.org/2057273002/diff/1/third_party/WebKit/Source/bindings/scripts/v8_utilities.py#newcode126 third_party/WebKit/Source/bindings/scripts/v8_utilities.py:126: def for_feature(items, feature_name): On 2016/06/10 20:09:30, chasej wrote: > ...
4 years, 6 months ago (2016-06-10 20:24:01 UTC) #6
chasej
lgtm
4 years, 6 months ago (2016-06-10 20:26:44 UTC) #7
haraken
https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode201 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:201: void installConstantInternal(v8::Isolate* isolate, v8::Local<v8::Object> prototype, const V8DOMConfiguration::ConstantConfiguration& constant, const ...
4 years, 6 months ago (2016-06-13 01:12:59 UTC) #9
Yuki
https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/templates/interface_base.cpp File third_party/WebKit/Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/templates/interface_base.cpp#newcode369 third_party/WebKit/Source/bindings/templates/interface_base.cpp:369: {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}} Do we really ...
4 years, 6 months ago (2016-06-13 06:47:55 UTC) #10
iclelland
https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode205 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:205: v8CallOrCrash(prototype->DefineOwnProperty(isolate->GetCurrentContext(), name, value)); On 2016/06/13 01:12:59, haraken wrote: > ...
4 years, 6 months ago (2016-06-15 12:12:04 UTC) #11
Yuki
https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode205 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:205: v8CallOrCrash(prototype->DefineOwnProperty(isolate->GetCurrentContext(), name, value)); On 2016/06/15 12:12:04, iclelland wrote: > ...
4 years, 6 months ago (2016-06-15 12:32:11 UTC) #12
iclelland
https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2057273002/diff/20001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode201 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:201: void installConstantInternal(v8::Isolate* isolate, v8::Local<v8::Object> prototype, const V8DOMConfiguration::ConstantConfiguration& constant, const ...
4 years, 6 months ago (2016-06-15 14:08:41 UTC) #14
haraken
LGTM on my side.
4 years, 6 months ago (2016-06-16 00:48:15 UTC) #15
Yuki
https://codereview.chromium.org/2057273002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2057273002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode204 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:204: v8::Local<v8::Function> interface = perContextData->constructorForType(type); I'd prefer that the caller ...
4 years, 6 months ago (2016-06-16 08:01:08 UTC) #16
iclelland
https://codereview.chromium.org/2057273002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp File third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp (right): https://codereview.chromium.org/2057273002/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp#newcode204 third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp:204: v8::Local<v8::Function> interface = perContextData->constructorForType(type); On 2016/06/16 08:01:08, Yuki wrote: ...
4 years, 6 months ago (2016-06-16 22:55:37 UTC) #17
Yuki
lgtm https://codereview.chromium.org/2057273002/diff/80001/third_party/WebKit/Source/bindings/templates/interface_base.cpp File third_party/WebKit/Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/2057273002/diff/80001/third_party/WebKit/Source/bindings/templates/interface_base.cpp#newcode386 third_party/WebKit/Source/bindings/templates/interface_base.cpp:386: v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate(), interfaceTemplate); You don't need ...
4 years, 6 months ago (2016-06-17 05:37:47 UTC) #18
iclelland
https://codereview.chromium.org/2057273002/diff/80001/third_party/WebKit/Source/bindings/templates/interface_base.cpp File third_party/WebKit/Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/2057273002/diff/80001/third_party/WebKit/Source/bindings/templates/interface_base.cpp#newcode386 third_party/WebKit/Source/bindings/templates/interface_base.cpp:386: v8::Local<v8::Signature> signature = v8::Signature::New(scriptState->isolate(), interfaceTemplate); On 2016/06/17 05:37:47, Yuki ...
4 years, 6 months ago (2016-06-17 06:08:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2057273002/100001
4 years, 6 months ago (2016-06-17 06:09:10 UTC) #22
Yuki
LGTM. Thank you for all your work and cooperations.
4 years, 6 months ago (2016-06-17 06:10:26 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 6 months ago (2016-06-17 07:44:12 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 07:45:28 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9500e40f0af7830f1024693b715d5abb6a7e37d4
Cr-Commit-Position: refs/heads/master@{#400390}

Powered by Google App Engine
This is Rietveld 408576698