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 2785493002: [Sensors] OrientationSensor.populateMatrix() works also with Float64Array and DOMMatrix types (Closed)

Created:
3 years, 8 months ago by Mikhail
Modified:
3 years, 8 months ago
CC:
chromium-reviews, shalamov, blink-reviews-bindings_chromium.org, wanming.lin, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sensors] OrientationSensor.populateMatrix() works also with Float64Array and DOMMatrix types As follows from the updated specification [1] OrientationSensor.populateMatrix() accepts arguments of the `RotationMatrixType` type which is a union type for 'Float32Array', 'Float64Array' and 'DOMMatrix' BUG=661478 [1] https://w3c.github.io/orientation-sensor/#typedefdef-rotationmatrixtype Review-Url: https://codereview.chromium.org/2785493002 Cr-Commit-Position: refs/heads/master@{#461092} Committed: https://chromium.googlesource.com/chromium/src/+/511fde94942ca59c7ac26c0a40e237251be45d8b

Patch Set 1 #

Total comments: 10

Patch Set 2 : Comments from Reilly #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -23 lines) Patch
M third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html View 1 2 chunks +49 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/generated.gni View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/OrientationSensor.h View 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp View 3 chunks +78 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/OrientationSensor.idl View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 19 (9 generated)
Mikhail
PTAL
3 years, 8 months ago (2017-03-28 15:11:26 UTC) #5
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2785493002/diff/1/third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html File third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html (right): https://codereview.chromium.org/2785493002/diff/1/third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html#newcode58 third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html:58: assert_equals(error.name, 'InvalidStateError'); assert_throws can be used for this one. ...
3 years, 8 months ago (2017-03-28 18:23:03 UTC) #8
Mikhail
Thanks for your comments! https://codereview.chromium.org/2785493002/diff/1/third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html File third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html (right): https://codereview.chromium.org/2785493002/diff/1/third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html#newcode58 third_party/WebKit/LayoutTests/sensor/absolute-orientation-sensor.html:58: assert_equals(error.name, 'InvalidStateError'); On 2017/03/28 18:23:02, ...
3 years, 8 months ago (2017-03-29 08:27:58 UTC) #9
haraken
bindings LGTM
3 years, 8 months ago (2017-03-29 08:34:22 UTC) #10
shalamov
lgtm
3 years, 8 months ago (2017-03-29 08:39:20 UTC) #11
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2785493002/diff/1/third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp File third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp (right): https://codereview.chromium.org/2785493002/diff/1/third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp#newcode80 third_party/WebKit/Source/modules/sensor/OrientationSensor.cpp:80: void OrientationSensor::populateMatrixInternal(Matrix* targetMatrix, On 2017/03/29 08:27:58, Mikhail wrote: > ...
3 years, 8 months ago (2017-03-29 15:31:22 UTC) #12
Mikhail
On 2017/03/29 15:31:22, Reilly Grant wrote: > I would write populateMatrix like this, which only ...
3 years, 8 months ago (2017-03-30 08:26:07 UTC) #13
Reilly Grant (use Gerrit)
lgtm because it doesn't matter whether this bike shed is blue.
3 years, 8 months ago (2017-03-30 14:24:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2785493002/20001
3 years, 8 months ago (2017-03-31 08:54:24 UTC) #16
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 10:35:41 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/511fde94942ca59c7ac26c0a40e2...

Powered by Google App Engine
This is Rietveld 408576698