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

Issue 1186823014: [bindings] Eliminate custom bindings for DeviceOrientationEvent. (Closed)

Created:
5 years, 6 months ago by vivekg_samsung
Modified:
5 years, 6 months ago
Reviewers:
haraken, vivekg, jsbell
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, Inactive, mlamouri+watch-blink_chromium.org, mvanouwerkerk+watch_chromium.org, timvolodine, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Eliminate custom bindings for DeviceOrientationEvent. Make the idl definitions Nullable to eliminate the custom bindings. BUG=345519 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197367

Patch Set 1 #

Total comments: 1

Patch Set 2 : Introducing |TreatUndefinedAs=Null| #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : Initialize the constructor to be null #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -128 lines) Patch
D Source/bindings/modules/v8/custom/V8DeviceOrientationEventCustom.cpp View 1 chunk +0 lines, -79 lines 0 comments Download
M Source/bindings/modules/v8/custom/custom.gni View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/modules/v8/custom/custom.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M Source/modules/device_orientation/DeviceOrientationData.h View 1 2 3 chunks +7 lines, -10 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationData.cpp View 1 2 3 2 chunks +25 lines, -25 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationEvent.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/device_orientation/DeviceOrientationEvent.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationEvent.idl View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M Source/modules/device_orientation/DeviceOrientationInspectorAgent.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
vivekg
haraken@, can you please take a look and let me know your feedback on the ...
5 years, 6 months ago (2015-06-16 11:49:06 UTC) #2
vivekg
https://codereview.chromium.org/1186823014/diff/1/Source/modules/device_orientation/DeviceOrientationEvent.cpp File Source/modules/device_orientation/DeviceOrientationEvent.cpp (right): https://codereview.chromium.org/1186823014/diff/1/Source/modules/device_orientation/DeviceOrientationEvent.cpp#newcode54 Source/modules/device_orientation/DeviceOrientationEvent.cpp:54: m_orientation = DeviceOrientationData::create(alpha, alpha ? *alpha : false, beta, ...
5 years, 6 months ago (2015-06-16 11:53:03 UTC) #3
haraken
On 2015/06/16 11:53:03, vivekg_ wrote: > https://codereview.chromium.org/1186823014/diff/1/Source/modules/device_orientation/DeviceOrientationEvent.cpp > File Source/modules/device_orientation/DeviceOrientationEvent.cpp (right): > > https://codereview.chromium.org/1186823014/diff/1/Source/modules/device_orientation/DeviceOrientationEvent.cpp#newcode54 > ...
5 years, 6 months ago (2015-06-16 16:07:46 UTC) #4
jsbell
drive-by: can we just eliminate this in favor of the constructor per spec? http://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientation Alternately, ...
5 years, 6 months ago (2015-06-16 20:36:22 UTC) #6
vivekg
On 2015/06/16 at 20:36:22, jsbell wrote: > drive-by: can we just eliminate this in favor ...
5 years, 6 months ago (2015-06-17 14:22:04 UTC) #7
vivekg
https://codereview.chromium.org/1186823014/diff/20001/Source/bindings/IDLExtendedAttributes.txt File Source/bindings/IDLExtendedAttributes.txt (right): https://codereview.chromium.org/1186823014/diff/20001/Source/bindings/IDLExtendedAttributes.txt#newcode102 Source/bindings/IDLExtendedAttributes.txt:102: TreatUndefinedAs=NullString|Null I should reorder this TreatUndefinedAs=Null|NullString https://codereview.chromium.org/1186823014/diff/20001/Source/modules/device_orientation/DeviceOrientationEvent.cpp File Source/modules/device_orientation/DeviceOrientationEvent.cpp ...
5 years, 6 months ago (2015-06-17 14:23:46 UTC) #8
haraken
https://codereview.chromium.org/1186823014/diff/20001/Source/bindings/scripts/v8_methods.py File Source/bindings/scripts/v8_methods.py (right): https://codereview.chromium.org/1186823014/diff/20001/Source/bindings/scripts/v8_methods.py#newcode228 Source/bindings/scripts/v8_methods.py:228: is_undefined_to_null = idl_type.is_primitive_type and \ \ is not needed. ...
5 years, 6 months ago (2015-06-17 16:01:42 UTC) #9
vivekg
On 2015/06/17 at 16:01:42, haraken wrote: > https://codereview.chromium.org/1186823014/diff/20001/Source/bindings/scripts/v8_methods.py#newcode229 > Source/bindings/scripts/v8_methods.py:229: has_extended_attribute_value(argument, "Default", "Undefined") and \ ...
5 years, 6 months ago (2015-06-17 17:32:46 UTC) #10
haraken
On 2015/06/17 17:32:46, vivekg_ wrote: > On 2015/06/17 at 16:01:42, haraken wrote: > > > ...
5 years, 6 months ago (2015-06-17 17:59:30 UTC) #11
vivekg
Simply making this Nullable works as pointed out by jsbell@ With this we don't need ...
5 years, 6 months ago (2015-06-18 12:45:35 UTC) #12
haraken
This looks much nicer! LGTM.
5 years, 6 months ago (2015-06-18 16:02:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1186823014/60001
5 years, 6 months ago (2015-06-18 16:13:08 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-06-18 16:36:00 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197367

Powered by Google App Engine
This is Rietveld 408576698