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

Issue 23705010: Add page visibility observer support for Device Motion (Closed)

Created:
7 years, 3 months ago by do-not-use
Modified:
7 years, 3 months ago
Reviewers:
timvolodine
CC:
blink-reviews, lgombos
Visibility:
Public.

Description

Add page visibility observer support for Device Motion Stop firing 'ondevicemotion' events when a tab goes invisible to optimize battery life. R=timvolodine@chromium.org BUG=263411 TEST=fast/dom/DeviceMotion/page-visibility.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157968

Patch Set 1 #

Total comments: 7

Patch Set 2 : Improve the test #

Total comments: 2

Patch Set 3 : Improve test case #

Patch Set 4 : Improve the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -9 lines) Patch
A LayoutTests/fast/dom/DeviceMotion/page-visibility.html View 1 2 1 chunk +60 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/DeviceMotion/page-visibility-expected.txt View 1 1 chunk +15 lines, -0 lines 0 comments Download
M Source/modules/device_orientation/DeviceMotionController.h View 3 chunks +12 lines, -6 lines 0 comments Download
M Source/modules/device_orientation/DeviceMotionController.cpp View 3 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-18 11:23:41 UTC) #1
timvolodine
thanks Christophe, looks good, just a couple of comments on the testing side.. https://codereview.chromium.org/23705010/diff/1/LayoutTests/fast/dom/DeviceMotion/page-visibility.html File ...
7 years, 3 months ago (2013-09-18 13:03:16 UTC) #2
do-not-use
On 2013/09/18 13:03:16, timvolodine wrote: > thanks Christophe, looks good, just a couple of comments ...
7 years, 3 months ago (2013-09-18 13:29:06 UTC) #3
timvolodine
https://codereview.chromium.org/23705010/diff/8001/LayoutTests/fast/dom/DeviceMotion/page-visibility.html File LayoutTests/fast/dom/DeviceMotion/page-visibility.html (right): https://codereview.chromium.org/23705010/diff/8001/LayoutTests/fast/dom/DeviceMotion/page-visibility.html#newcode33 LayoutTests/fast/dom/DeviceMotion/page-visibility.html:33: function testWithPageHidden() this should be called via setTimeout 0, ...
7 years, 3 months ago (2013-09-18 13:49:21 UTC) #4
do-not-use
https://codereview.chromium.org/23705010/diff/8001/LayoutTests/fast/dom/DeviceMotion/page-visibility.html File LayoutTests/fast/dom/DeviceMotion/page-visibility.html (right): https://codereview.chromium.org/23705010/diff/8001/LayoutTests/fast/dom/DeviceMotion/page-visibility.html#newcode33 LayoutTests/fast/dom/DeviceMotion/page-visibility.html:33: function testWithPageHidden() On 2013/09/18 13:49:21, timvolodine wrote: > this ...
7 years, 3 months ago (2013-09-18 14:04:39 UTC) #5
timvolodine
lgtm
7 years, 3 months ago (2013-09-18 14:10:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23705010/10001
7 years, 3 months ago (2013-09-18 14:27:27 UTC) #7
commit-bot: I haz the power
7 years, 3 months ago (2013-09-18 15:31:51 UTC) #8
Message was sent while issue was closed.
Change committed as 157968

Powered by Google App Engine
This is Rietveld 408576698