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

Issue 219463003: Screen Orientation API: cleanup, simplify and fix implementation. (Closed)

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

Description

Screen Orientation API: cleanup, simplify and fix implementation. This CL creates new types to better reflect screen orientation types. It also simplify ScreenOrientation.cpp, following spec simplifications. Finally, there are some changes related to |m_lockedOrientations| that was a bit buggy by nature, assuming that only the current fram could change the locking. BUG=162827 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171405

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 4

Patch Set 5 : ch.dumez's comments applied #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -64 lines) Patch
M Source/modules/screen_orientation/ScreenOrientation.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientation.cpp View 1 2 3 4 5 3 chunks +44 lines, -45 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationDispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp View 1 chunk +1 line, -1 line 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M public/platform/WebScreenOrientation.h View 1 2 3 4 1 chunk +5 lines, -7 lines 0 comments Download
M public/platform/WebScreenOrientationListener.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
A public/platform/WebScreenOrientationLockType.h View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A public/platform/WebScreenOrientationType.h View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
mlamouri (slow - plz ping)
6 years, 8 months ago (2014-03-31 16:01:16 UTC) #1
mlamouri (slow - plz ping)
abarth@chromium.org: Please review changes in public/platform/*
6 years, 8 months ago (2014-03-31 16:01:55 UTC) #2
mlamouri (slow - plz ping)
I have cleanup the patch a bit. No more #if BLINK_IMPLEMENTATION. However, it now requires ...
6 years, 8 months ago (2014-03-31 16:20:29 UTC) #3
Inactive
https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode19 Source/modules/screen_orientation/ScreenOrientation.cpp:19: char orientation; Any reason we are not using a ...
6 years, 8 months ago (2014-03-31 18:52:35 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode19 Source/modules/screen_orientation/ScreenOrientation.cpp:19: char orientation; On 2014/03/31 18:52:36, Chris Dumez wrote: > ...
6 years, 8 months ago (2014-03-31 19:45:35 UTC) #5
Inactive
https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode87 Source/modules/screen_orientation/ScreenOrientation.cpp:87: m_orientationLockTimer.startOneShot(0, FROM_HERE); On 2014/03/31 19:45:35, Mounir Lamouri wrote: > ...
6 years, 8 months ago (2014-03-31 19:59:42 UTC) #6
mlamouri (slow - plz ping)
On 2014/03/31 19:59:42, Chris Dumez wrote: > https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp > File Source/modules/screen_orientation/ScreenOrientation.cpp (right): > > https://codereview.chromium.org/219463003/diff/20001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode87 ...
6 years, 8 months ago (2014-03-31 20:05:04 UTC) #7
Inactive
On 2014/03/31 20:05:04, Mounir Lamouri wrote: > On 2014/03/31 19:59:42, Chris Dumez wrote: > > ...
6 years, 8 months ago (2014-04-01 13:09:06 UTC) #8
Inactive
https://codereview.chromium.org/219463003/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode16 Source/modules/screen_orientation/ScreenOrientation.cpp:16: COMPILE_ASSERT((char)blink::WebScreenOrientationPortraitPrimary == (char)blink::WebScreenOrientationLockPortraitPrimary, mismatching_types); We prefer C++ casting instead ...
6 years, 8 months ago (2014-04-01 13:20:44 UTC) #9
mlamouri (slow - plz ping)
https://codereview.chromium.org/219463003/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/40001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode16 Source/modules/screen_orientation/ScreenOrientation.cpp:16: COMPILE_ASSERT((char)blink::WebScreenOrientationPortraitPrimary == (char)blink::WebScreenOrientationLockPortraitPrimary, mismatching_types); On 2014/04/01 13:20:44, Chris Dumez ...
6 years, 8 months ago (2014-04-01 16:30:20 UTC) #10
Inactive
lgtm but Adam needs to take a look at it as well. https://codereview.chromium.org/219463003/diff/60001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp ...
6 years, 8 months ago (2014-04-01 17:34:24 UTC) #11
mlamouri (slow - plz ping)
https://codereview.chromium.org/219463003/diff/60001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/60001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode15 Source/modules/screen_orientation/ScreenOrientation.cpp:15: // This code assume that WebScreenOrientationType values are included ...
6 years, 8 months ago (2014-04-01 19:37:52 UTC) #12
abarth-chromium
lgtm https://codereview.chromium.org/219463003/diff/70001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/70001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode21 Source/modules/screen_orientation/ScreenOrientation.cpp:21: COMPILE_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapeSecondary, WebScreenOrientationLockLandscapeSecondary); We usually put these in AssertMatchingEnums.cpp ...
6 years, 8 months ago (2014-04-07 19:59:35 UTC) #13
mlamouri (slow - plz ping)
https://codereview.chromium.org/219463003/diff/70001/Source/modules/screen_orientation/ScreenOrientation.cpp File Source/modules/screen_orientation/ScreenOrientation.cpp (right): https://codereview.chromium.org/219463003/diff/70001/Source/modules/screen_orientation/ScreenOrientation.cpp#newcode21 Source/modules/screen_orientation/ScreenOrientation.cpp:21: COMPILE_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapeSecondary, WebScreenOrientationLockLandscapeSecondary); On 2014/04/07 19:59:36, abarth wrote: > We ...
6 years, 8 months ago (2014-04-13 01:59:30 UTC) #14
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 8 months ago (2014-04-13 01:59:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/219463003/90001
6 years, 8 months ago (2014-04-13 01:59:41 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-13 02:27:03 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 8 months ago (2014-04-13 02:27:03 UTC) #18
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 8 months ago (2014-04-13 02:37:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/219463003/110001
6 years, 8 months ago (2014-04-13 02:37:38 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-13 03:05:22 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_rel
6 years, 8 months ago (2014-04-13 03:05:22 UTC) #22
mlamouri (slow - plz ping)
The CQ bit was checked by mlamouri@chromium.org
6 years, 8 months ago (2014-04-13 03:15:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlamouri@chromium.org/219463003/110001
6 years, 8 months ago (2014-04-13 03:15:59 UTC) #24
commit-bot: I haz the power
6 years, 8 months ago (2014-04-13 03:46:14 UTC) #25
Message was sent while issue was closed.
Change committed as 171405

Powered by Google App Engine
This is Rietveld 408576698