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

Issue 23068032: Add constants and primitive type readonly attributes to Python IDL compiler (Closed)

Created:
7 years, 4 months ago by Nils Barth (inactive)
Modified:
7 years, 3 months ago
CC:
blink-reviews, kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, do-not-use, kouhei (in TOK)
Visibility:
Public.

Description

Add constants and primitive type readonly attributes to Python IDL compiler This adds constants to the Python IDL compiler. As there are no files with only constants, to have real test cases I've also supported primitive type readonly attributes (currently only have wrapped readonly attributes), also moving attribute templates into a macro file. This allows us to move the following 3 files to Python: * MallocStatistics.idl * MemoryInfo.idl * PerformanceNavigation.idl The Python generates exactly the same code as the Perl. About 80 IDL files use constants, but usual other elements as well. BUG=239771 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156763

Patch Set 1 #

Total comments: 68

Patch Set 2 : Fix pointer handling #

Patch Set 3 : Revised #

Patch Set 4 : Synced, finalized (?) #

Patch Set 5 : Fix spacing #

Total comments: 25

Patch Set 6 : Final #

Patch Set 7 : Reupload #

Patch Set 8 : Re-reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+545 lines, -215 lines) Patch
M Source/bindings/derived_sources.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.py View 1 2 3 4 5 11 chunks +120 lines, -40 lines 0 comments Download
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 2 3 4 5 7 chunks +12 lines, -12 lines 0 comments Download
A Source/bindings/templates/attributes.cpp View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M Source/bindings/templates/callback_interface.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A Source/bindings/templates/constants.cpp View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 3 4 5 4 chunks +20 lines, -28 lines 0 comments Download
A + Source/bindings/tests/idls/TestConstants.idl View 1 2 3 1 chunk +22 lines, -15 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 2 3 1 chunk +0 lines, -14 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A + Source/bindings/tests/results/V8TestConstants.h View 1 2 3 1 chunk +29 lines, -29 lines 0 comments Download
A Source/bindings/tests/results/V8TestConstants.cpp View 1 2 3 4 5 1 chunk +191 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomAccessors.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestEvent.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
Source/bindings/tests/results/V8TestEventConstructor.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
Source/bindings/tests/results/V8TestException.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestExtendedEvent.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 4 5 4 chunks +12 lines, -12 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceEmpty.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
Source/bindings/tests/results/V8TestMediaQueryListListener.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestNode.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 4 5 5 chunks +7 lines, -31 lines 0 comments Download
Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestSerializedScriptValueInterface.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nils Barth (inactive)
Here's the constants (+ some attributes)-only CL!
7 years, 4 months ago (2013-08-22 06:00:49 UTC) #1
kouhei (in TOK)
https://codereview.chromium.org/23068032/diff/1/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/23068032/diff/1/Source/bindings/scripts/code_generator_v8.py#newcode275 Source/bindings/scripts/code_generator_v8.py:275: pointer_type: add doc for None? None: return raw value ...
7 years, 4 months ago (2013-08-22 06:14:32 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/23068032/diff/1/Source/bindings/scripts/code_generator_v8.py File Source/bindings/scripts/code_generator_v8.py (right): https://codereview.chromium.org/23068032/diff/1/Source/bindings/scripts/code_generator_v8.py#newcode275 Source/bindings/scripts/code_generator_v8.py:275: pointer_type: On 2013/08/22 06:14:32, kouhei wrote: > add doc ...
7 years, 4 months ago (2013-08-22 06:33:48 UTC) #3
haraken
Thanks for the CL! The implementation looks good. Most comments below are just about naming ...
7 years, 4 months ago (2013-08-22 07:31:33 UTC) #4
Nils Barth (inactive)
Thanks for comments! Revised; overall notes are: 1. There are lots of hacks for Perl ...
7 years, 4 months ago (2013-08-22 09:08:12 UTC) #5
haraken
> 1. There are lots of hacks for Perl compatibility. Will fix easy ones in ...
7 years, 4 months ago (2013-08-22 11:05:27 UTC) #6
Nils Barth (inactive)
(Reply to general comments; specific replies follow.) On 2013/08/22 11:05:27, haraken wrote: > That being ...
7 years, 4 months ago (2013-08-23 01:29:04 UTC) #7
Nils Barth (inactive)
Inline replies; I'll make a "Perl naming" CL first, per below comments, then update this ...
7 years, 4 months ago (2013-08-23 01:50:04 UTC) #8
haraken
> Agreed regarding changing names ASAP; will do before this CL. > > It's a ...
7 years, 4 months ago (2013-08-23 02:09:47 UTC) #9
Nils Barth (inactive)
On 2013/08/23 02:09:47, haraken wrote: > OK, but please be careful not to modularize too ...
7 years, 4 months ago (2013-08-23 02:15:32 UTC) #10
Nils Barth (inactive)
Finalized (hopefully). This fixes per comments, including: * Remove excess template nesting (attribute_getter now flat). ...
7 years, 3 months ago (2013-08-26 07:35:07 UTC) #11
haraken
Thanks for the iterative updates! LGTM. Some of the below comments will be hard to ...
7 years, 3 months ago (2013-08-26 09:33:40 UTC) #12
Nils Barth (inactive)
Thanks for comments; revised and finalized. A few changes require more Perl CG changes, so ...
7 years, 3 months ago (2013-08-27 02:59:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/23068032/39001
7 years, 3 months ago (2013-08-27 03:00:51 UTC) #14
haraken
All comments (except for one point below) make sense. I'd be happy if you could ...
7 years, 3 months ago (2013-08-27 03:39:00 UTC) #15
commit-bot: I haz the power
Change committed as 156763
7 years, 3 months ago (2013-08-27 04:19:18 UTC) #16
Nils Barth (inactive)
7 years, 3 months ago (2013-08-27 07:37:31 UTC) #17
Message was sent while issue was closed.
(For reference: discussed testing offline, agreed not a priority for now.)

Powered by Google App Engine
This is Rietveld 408576698