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

Issue 1416123002: Absolute Device Orientation API: blink implementation. (Closed)

Created:
5 years, 2 months ago by timvolodine
Modified:
5 years, 1 month ago
CC:
chromium-reviews, mlamouri+watch-blink_chromium.org, mvanouwerkerk+watch_chromium.org, dglazkov+blink, Inactive, blink-reviews, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Absolute Device Orientation API: blink implementation. Implement blink classes for the 'deviceorientationabsolute' event. Also add and update layout tests and UseCounters. The 'ondeviceorientationabsolute' event listener is currently exposed behind the experimental features flag. BUG=520546 Committed: https://crrev.com/70e4cfe9b1a1ed76535b5b846dccef9033418313 Cr-Commit-Position: refs/heads/master@{#357374}

Patch Set 1 #

Patch Set 2 : fix patch apply #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : refactor and address comments #

Patch Set 5 : rebase #

Total comments: 8

Patch Set 6 : address comments, add layout test #

Patch Set 7 : fix tests #

Patch Set 8 : fix more layout tests #

Patch Set 9 : refactor basic layout test #

Patch Set 10 : add usecounter and rebase #

Total comments: 12

Patch Set 11 : address comments and rebase #

Total comments: 2

Patch Set 12 : . #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -46 lines) Patch
M content/browser/device_sensors/device_inertial_sensor_service.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/basic-operation.html View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -23 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/basic-operation-absolute.html View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/basic-operation-absolute-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/basic-operation-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/resources/basic-operation.js View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/window-property.html View 1 2 3 4 5 6 2 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/DeviceOrientation/window-property-expected.txt View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/events/EventTypeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DOMWindowDeviceOrientation.h View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +75 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.h View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationController.cpp View 1 2 3 4 5 3 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.cpp View 1 2 3 4 5 3 chunks +14 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/device_orientation/WindowDeviceOrientation.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 46 (16 generated)
timvolodine
rbyers@: initial patch for the blink side, ptal
5 years, 2 months ago (2015-10-21 18:34:51 UTC) #3
timvolodine
+smus@: I've currently named the event 'deviceorientationabsolute' while we used 'absolutedeviceorientation' in the spec. From ...
5 years, 2 months ago (2015-10-21 18:35:53 UTC) #5
Boris Smus
SGTM. I have no naming preference here. On Wed, Oct 21, 2015 at 11:35 AM, ...
5 years, 2 months ago (2015-10-21 18:51:19 UTC) #6
Boris Smus
SGTM. I have no naming preference here. On Wed, Oct 21, 2015 at 11:35 AM, ...
5 years, 2 months ago (2015-10-21 18:51:21 UTC) #7
Rick Byers
Since there isn't yet an approved LGTM to ship, please put the new API behind ...
5 years, 2 months ago (2015-10-21 18:54:46 UTC) #8
Rick Byers
On 2015/10/21 18:54:46, Rick Byers wrote: > Since there isn't yet an approved LGTM to ...
5 years, 2 months ago (2015-10-21 19:00:31 UTC) #9
timvolodine
Thanks for the initial review! I've now put the feature behind DeviceOrientationAbsolute blink flag (as ...
5 years, 2 months ago (2015-10-22 15:06:28 UTC) #11
Rick Byers
Looks good, just a couple more little suggestions to simplify things a bit further (and ...
5 years, 2 months ago (2015-10-22 16:00:52 UTC) #12
timvolodine
replies to comments, plus also added some layout testing (with a bug fix in content/browser), ...
5 years, 1 month ago (2015-10-27 16:38:35 UTC) #13
Rick Byers
Tests look fine, thanks. https://codereview.chromium.org/1416123002/diff/80001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp File third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp (right): https://codereview.chromium.org/1416123002/diff/80001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp#newcode47 third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp:47: // FIXME: add user counters ...
5 years, 1 month ago (2015-10-27 18:35:07 UTC) #14
timvolodine
added UseCounter bits. https://codereview.chromium.org/1416123002/diff/80001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp File third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp (right): https://codereview.chromium.org/1416123002/diff/80001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp#newcode47 third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp:47: // FIXME: add user counters as ...
5 years, 1 month ago (2015-10-28 17:48:08 UTC) #15
timvolodine
+isherman@: for histograms.xml (I ran the update_use_counter_feature_enum.py which generated an updated version of histograms.xml. Looks ...
5 years, 1 month ago (2015-10-28 17:51:15 UTC) #17
timvolodine
+oilpan-reviews@: could somebody familiar with oilpan please take a look at DeviceOrientationController and the deriving ...
5 years, 1 month ago (2015-10-28 17:55:49 UTC) #19
Ilya Sherman
histograms.xml lgtm
5 years, 1 month ago (2015-10-28 18:15:50 UTC) #20
haraken
Would you compile the CL with GYP_DEFINES='enable_oilpan=1 blink_gc_plugin=1'? It will catch Oilpan's programming errors. https://codereview.chromium.org/1416123002/diff/180001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp ...
5 years, 1 month ago (2015-10-28 18:18:38 UTC) #22
haraken
https://codereview.chromium.org/1416123002/diff/180001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp File third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp (right): https://codereview.chromium.org/1416123002/diff/180001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp#newcode28 third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp:28: DeviceOrientationAbsoluteController& DeviceOrientationAbsoluteController::from(Document& document) I think this method should just ...
5 years, 1 month ago (2015-10-28 18:23:34 UTC) #23
Rick Byers
LGTM, thanks (subject to the oilpan review of course)
5 years, 1 month ago (2015-10-28 18:27:51 UTC) #24
timvolodine
haraken@: thanks for the comments! replies below. I've tried compiling with build/gyp_chromium -G config=Debug -D ...
5 years, 1 month ago (2015-10-29 13:49:19 UTC) #25
haraken
On 2015/10/29 13:49:19, timvolodine wrote: > haraken@: thanks for the comments! replies below. > > ...
5 years, 1 month ago (2015-10-29 13:56:48 UTC) #26
timvolodine
On 2015/10/29 13:56:48, haraken wrote: > On 2015/10/29 13:49:19, timvolodine wrote: > > haraken@: thanks ...
5 years, 1 month ago (2015-10-29 13:59:33 UTC) #27
haraken
https://codereview.chromium.org/1416123002/diff/180001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp#newcode28 > third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp:28: > DeviceOrientationAbsoluteController& > DeviceOrientationAbsoluteController::from(Document& document) > On 2015/10/28 18:23:34, haraken wrote: > ...
5 years, 1 month ago (2015-10-29 14:02:28 UTC) #28
timvolodine
On 2015/10/29 14:02:28, haraken wrote: > https://codereview.chromium.org/1416123002/diff/180001/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp#newcode28 > > > third_party/WebKit/Source/modules/device_orientation/DeviceOrientationAbsoluteController.cpp:28: > > DeviceOrientationAbsoluteController& > ...
5 years, 1 month ago (2015-10-29 14:09:42 UTC) #29
haraken
https://codereview.chromium.org/1416123002/diff/200001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/1416123002/diff/200001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode144 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:144: DeviceOrientationAbsoluteController::from(*document); If the runtime flag is enabled, won't it ...
5 years, 1 month ago (2015-10-29 14:15:11 UTC) #30
timvolodine
https://codereview.chromium.org/1416123002/diff/200001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): https://codereview.chromium.org/1416123002/diff/200001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode144 third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp:144: DeviceOrientationAbsoluteController::from(*document); On 2015/10/29 14:15:11, haraken wrote: > > If ...
5 years, 1 month ago (2015-10-29 19:34:33 UTC) #31
haraken
On 2015/10/29 19:34:33, timvolodine wrote: > https://codereview.chromium.org/1416123002/diff/200001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp > File third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp (right): > > https://codereview.chromium.org/1416123002/diff/200001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp#newcode144 > ...
5 years, 1 month ago (2015-10-29 20:00:33 UTC) #32
timvolodine
On 2015/10/29 20:00:33, haraken wrote: > On 2015/10/29 19:34:33, timvolodine wrote: > > > https://codereview.chromium.org/1416123002/diff/200001/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ...
5 years, 1 month ago (2015-11-02 15:34:09 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416123002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416123002/240001
5 years, 1 month ago (2015-11-02 15:34:49 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416123002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416123002/240001
5 years, 1 month ago (2015-11-02 15:44:14 UTC) #44
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 1 month ago (2015-11-02 16:51:59 UTC) #45
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 16:53:00 UTC) #46
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/70e4cfe9b1a1ed76535b5b846dccef9033418313
Cr-Commit-Position: refs/heads/master@{#357374}

Powered by Google App Engine
This is Rietveld 408576698