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

Issue 74783008: IDL compiler: [ActiveDOMObject] interface (Closed)

Created:
7 years, 1 month ago by Nils Barth (inactive)
Modified:
7 years, 1 month ago
Reviewers:
haraken
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, 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: [ActiveDOMObject] interface First interface extended attribute. Each of these requires a separate test IDL file, as do combinations of extended attributes that interact, due to having one interface per file. The test interface can be *empty* if the extended attribute only affects the overall interface code (e.g., [ActiveDOMObject]), but needs to have attributes or methods if these are also affected (e.g., [CheckSecurity]). I will be primarily activating existing tests by removing the "SKIP" from run-bindings-tests, and writing new tests if necessary. Following existing naming, these are generally called Test<ExtAttr>Interface.idl ...for some value of <ExtAttr>. This CL also renames an incorrectly named file: TestActiveDOMObject.idl => TestCheckSecurityInterface.idl ...and adds a new test file: TestActiveDOMObjectInterface.idl BUG=239771 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162256

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -179 lines) Patch
M Source/bindings/scripts/unstable/v8_interface.py View 1 chunk +3 lines, -1 line 0 comments Download
M Source/bindings/templates/interface.h View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 chunks +16 lines, -1 line 0 comments Download
M Source/bindings/templates/interface_base.cpp View 2 chunks +4 lines, -1 line 0 comments Download
D Source/bindings/tests/idls/TestActiveDOMObject.idl View 1 chunk +0 lines, -36 lines 0 comments Download
A + Source/bindings/tests/idls/TestActiveDOMObjectInterface.idl View 1 chunk +3 lines, -1 line 0 comments Download
A + Source/bindings/tests/idls/TestCheckSecurityInterface.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObjectPython.idl View 1 chunk +1 line, -2 lines 0 comments Download
A + Source/bindings/tests/results/V8TestActiveDOMObjectInterface.h View 1 chunk +30 lines, -29 lines 0 comments Download
A + Source/bindings/tests/results/V8TestActiveDOMObjectInterface.cpp View 6 chunks +22 lines, -17 lines 0 comments Download
A + Source/bindings/tests/results/V8TestCheckSecurityInterface.h View 1 chunk +29 lines, -29 lines 0 comments Download
A + Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp View 1 18 chunks +60 lines, -60 lines 0 comments Download
M Tools/Scripts/webkitpy/bindings/main.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Nils Barth (inactive)
First interface extended attribute!
7 years, 1 month ago (2013-11-18 10:57:04 UTC) #1
haraken
LGTM https://codereview.chromium.org/74783008/diff/1/Source/bindings/templates/interface.cpp File Source/bindings/templates/interface.cpp (right): https://codereview.chromium.org/74783008/diff/1/Source/bindings/templates/interface.cpp#newcode342 Source/bindings/templates/interface.cpp:342: ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> object) object => wrapper
7 years, 1 month ago (2013-11-18 11:36:50 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/74783008/diff/1/Source/bindings/templates/interface.cpp File Source/bindings/templates/interface.cpp (right): https://codereview.chromium.org/74783008/diff/1/Source/bindings/templates/interface.cpp#newcode342 Source/bindings/templates/interface.cpp:342: ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> object) On 2013/11/18 11:36:50, haraken wrote: > ...
7 years, 1 month ago (2013-11-19 01:06:50 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/74783008/1
7 years, 1 month ago (2013-11-19 01:09:09 UTC) #4
commit-bot: I haz the power
Failed to apply patch for Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; A Source/bindings/tests/results/V8TestCheckSecurityInterface.cpp ...
7 years, 1 month ago (2013-11-19 01:09:15 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/74783008/80001
7 years, 1 month ago (2013-11-19 01:27:35 UTC) #6
commit-bot: I haz the power
Change committed as 162256
7 years, 1 month ago (2013-11-19 01:28:42 UTC) #7
Nils Barth (inactive)
7 years, 1 month ago (2013-11-19 02:16:33 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/74783008/diff/1/Source/bindings/templates/int...
File Source/bindings/templates/interface.cpp (right):

https://codereview.chromium.org/74783008/diff/1/Source/bindings/templates/int...
Source/bindings/templates/interface.cpp:342: ActiveDOMObject*
{{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> object)
On 2013/11/19 01:06:51, Nils Barth wrote:
> On 2013/11/18 11:36:50, haraken wrote:
> > object => wrapper
> 
> Changes Perl (so needs testing), will do in quick followup.

Posted in:
IDL compiler: rename object => wrapper in toActiveDOMObject
https://codereview.chromium.org/75933002/

Powered by Google App Engine
This is Rietveld 408576698