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

Issue 26547005: IDL compiler: [PerContextEnabled] for getters (Closed)

Created:
7 years, 2 months ago by Nils Barth (inactive)
Modified:
7 years, 2 months ago
Reviewers:
haraken
CC:
blink-reviews, kojih, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive, kouhei (in TOK)
Visibility:
Public.

Description

IDL compiler: [PerContextEnabled] for getters There is only one use of PerContextEnabled for attributes: Source/core/page/WindowPagePopup.idl [PerContextEnabled=PagePopup] readonly attribute PagePopupController pagePopupController; ...and 2 uses for operations: Source/core/frame/History.idl Longer-term, consider removing them. It would be nice to get rid of these, as it's significant complexity to support very limited use cases, but that would involve C++ changes. I'm not implementing dual [RuntimeEnabled, PerContextEnabled] or [Conditional, PerContextEnabled] as these are not used in actual code; also removing from Perl. Other changes: * Refactors attribute configuration in Jinja template into a macro, since used 3 places * Capitalizes Feature Names in PerContextEnabled values * Fixes spacing in Perl CG BUG=239771 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159774

Patch Set 1 #

Patch Set 2 : Fix caps #

Total comments: 4

Patch Set 3 : Rename, revise #

Patch Set 4 : Rebased #

Patch Set 5 : Reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -342 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 8 chunks +18 lines, -30 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_attributes.py View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M Source/bindings/scripts/unstable/v8_utilities.py View 1 chunk +9 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 4 chunks +30 lines, -4 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestImplements.idl View 1 2 2 chunks +4 lines, -8 lines 0 comments Download
M Source/bindings/tests/idls/TestInterface.idl View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObjectPython.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8SupportTestInterface.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8SupportTestInterface.cpp View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestConstants.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestConstants.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomAccessors.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomAccessors.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEvent.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEvent.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventConstructor.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventConstructor.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestException.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestException.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.h View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 27 chunks +9 lines, -189 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEmpty.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEmpty.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceImplementedAs.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestMediaQueryListListener.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestMediaQueryListListener.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 3 chunks +5 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 3 4 chunks +25 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestSerializedScriptValueInterface.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestSerializedScriptValueInterface.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8PerContextData.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8WindowShell.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/WrapperTypeInfo.h View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M Source/bindings/v8/custom/V8ArrayBufferCustom.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/custom/V8HTMLImageElementConstructor.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/History.idl View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/page/WindowPagePopup.idl View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Nils Barth (inactive)
Special case, 1 real use. 2 questions: 1. Can we remove [PerContextEnabled] (longer term)? 2. ...
7 years, 2 months ago (2013-10-16 05:06:15 UTC) #1
haraken
LGTM. > 1. Can we remove [PerContextEnabled] (longer term)? I'm not sure, because the concept ...
7 years, 2 months ago (2013-10-16 05:28:06 UTC) #2
Nils Barth (inactive)
On 2013/10/16 05:28:06, haraken wrote: > > 1. Can we remove [PerContextEnabled] (longer term)? > ...
7 years, 2 months ago (2013-10-16 06:02:10 UTC) #3
Nils Barth (inactive)
Thanks, revised, will land after [Reflect] lands, since needs rebasing and try bots (due to ...
7 years, 2 months ago (2013-10-16 06:05:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/26547005/13001
7 years, 2 months ago (2013-10-16 10:59:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/26547005/18001
7 years, 2 months ago (2013-10-16 11:01:46 UTC) #6
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 14:26:18 UTC) #7
Message was sent while issue was closed.
Change committed as 159774

Powered by Google App Engine
This is Rietveld 408576698