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

Issue 398003002: Add start/stop listening Platform methods for Screen Orientation. (Closed)

Created:
6 years, 5 months ago by mlamouri (slow - plz ping)
Modified:
6 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, jamesr
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Add start/stop listening Platform methods for Screen Orientation. This will allow platforms that do not support accurate and efficient screen orientation listening to only spend resources when needed In practice, the current platform we are targetting is Android 4.0/4.1. BUG=162827

Patch Set 1 #

Total comments: 2

Patch Set 2 : apply review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -0 lines) Patch
M Source/modules/screen_orientation/ScreenOrientationController.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 5 chunks +18 lines, -0 lines 0 comments Download
M public/platform/Platform.h View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mlamouri (slow - plz ping)
6 years, 5 months ago (2014-07-16 16:56:53 UTC) #1
mlamouri (slow - plz ping)
Note: this is required by https://codereview.chromium.org/398013002/
6 years, 5 months ago (2014-07-16 16:57:15 UTC) #2
abarth-chromium
https://codereview.chromium.org/398003002/diff/1/public/platform/Platform.h File public/platform/Platform.h (right): https://codereview.chromium.org/398003002/diff/1/public/platform/Platform.h#newcode659 public/platform/Platform.h:659: The way we've done this for other APIs is ...
6 years, 5 months ago (2014-07-16 17:12:17 UTC) #3
mlamouri (slow - plz ping)
On 2014/07/16 17:12:17, abarth wrote: > https://codereview.chromium.org/398003002/diff/1/public/platform/Platform.h > File public/platform/Platform.h (right): > > https://codereview.chromium.org/398003002/diff/1/public/platform/Platform.h#newcode659 > ...
6 years, 5 months ago (2014-07-16 17:21:57 UTC) #4
abarth-chromium
On 2014/07/16 at 17:21:57, mlamouri wrote: > Every platform except Android 4.0/4.1 will listen for ...
6 years, 5 months ago (2014-07-16 18:14:14 UTC) #5
mlamouri (slow - plz ping)
On 2014/07/16 18:14:14, abarth wrote: > On 2014/07/16 at 17:21:57, mlamouri wrote: > > Every ...
6 years, 5 months ago (2014-07-16 18:28:04 UTC) #6
abarth-chromium
On 2014/07/16 at 18:28:04, mlamouri wrote: > On 2014/07/16 18:14:14, abarth wrote: > > On ...
6 years, 5 months ago (2014-07-16 20:26:11 UTC) #7
mlamouri (slow - plz ping)
On 2014/07/16 20:26:11, abarth wrote: > Perhaps we should just not support this feature on ...
6 years, 5 months ago (2014-07-16 23:25:01 UTC) #8
Michael van Ouwerkerk
https://codereview.chromium.org/398003002/diff/1/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/398003002/diff/1/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode117 Source/modules/screen_orientation/ScreenOrientation.cpp:117: blink::Platform::current()->stopScreenOrientationListening(); Shouldn't this also be called when page visibility ...
6 years, 5 months ago (2014-07-17 10:36:27 UTC) #9
mlamouri (slow - plz ping)
Review comments applied. PTAL. I also wrote a design doc describing what I'm trying to ...
6 years, 5 months ago (2014-07-17 16:04:34 UTC) #10
Michael van Ouwerkerk
lgtm
6 years, 5 months ago (2014-07-17 16:52:50 UTC) #11
abarth-chromium
Thanks for the doc. IMHO, we should just ship with the bug. That's better than ...
6 years, 5 months ago (2014-07-17 18:07:47 UTC) #12
mlamouri (slow - plz ping)
On 2014/07/17 18:07:47, abarth wrote: > Thanks for the doc. > > IMHO, we should ...
6 years, 5 months ago (2014-07-17 19:30:03 UTC) #13
abarth-chromium
This CL is also buggy. If there are multiple ScreenOrientationControllers in a given process (i.e., ...
6 years, 5 months ago (2014-07-17 20:08:11 UTC) #14
mlamouri (slow - plz ping)
6 years, 4 months ago (2014-08-06 14:18:37 UTC) #15

Powered by Google App Engine
This is Rietveld 408576698