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

Issue 268673015: Support screen.lockOrientation() / screen.unlockOrientation() when running layout tests (Closed)

Created:
6 years, 7 months ago by Inactive
Modified:
6 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, abarth-chromium
Visibility:
Public.

Description

Support screen.lockOrientation() / screen.unlockOrientation() when running layout tests Support screen.lockOrientation() / screen.unlockOrientation() when running layout tests so that we can increase test coverage via layout tests. The following functionality is implemented when running layout tests: - The lock value is now stored when calling screen.lockOrientation() from the layout tests. If the current orientation is not allowed when the new lock, a new suitable orientation is chosen and an 'orientationchange' event is fired. - The lock value is reset to WebScreenOrientationLockDefault when screen.unlockOrientation() is called. If the current screen orientation was not allowed by the previous lock, an 'orientationchange' event is fired. - testRunner.setMockScreenOrientation() causes an 'orientationchange' event to be fired only if the orientation change is allowed by the current lock. R=jochen@chromium.org BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270552

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix coding style #

Total comments: 7

Patch Set 3 : Take feedback into consideration #

Total comments: 4

Patch Set 4 : Take feedback into consideration #

Total comments: 4

Patch Set 5 : Take jochen's feedback into consideration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -6 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/layouttest_support.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 8 chunks +18 lines, -6 lines 0 comments Download
A content/renderer/screen_orientation/mock_screen_orientation_controller.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A content/renderer/screen_orientation/mock_screen_orientation_controller.cc View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download
M content/shell/renderer/test_runner/WebTestDelegate.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/shell/renderer/test_runner/test_runner.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/renderer/webkit_test_runner.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/renderer/webkit_test_runner.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (0 generated)
Inactive
This is needed so that our blink side changes such as the following one can ...
6 years, 7 months ago (2014-05-02 20:26:21 UTC) #1
mlamouri (slow - plz ping)
On 2014/05/02 20:26:21, Chris Dumez wrote: > This is needed so that our blink side ...
6 years, 7 months ago (2014-05-02 20:33:03 UTC) #2
jochen (gone - plz use gerrit)
On 2014/05/02 20:33:03, Mounir Lamouri wrote: > On 2014/05/02 20:26:21, Chris Dumez wrote: > > ...
6 years, 7 months ago (2014-05-05 07:28:50 UTC) #3
Inactive
On 2014/05/05 07:28:50, jochen wrote: > On 2014/05/02 20:33:03, Mounir Lamouri wrote: > > On ...
6 years, 7 months ago (2014-05-05 13:40:54 UTC) #4
jochen (gone - plz use gerrit)
On 2014/05/05 13:40:54, Chris Dumez wrote: > On 2014/05/05 07:28:50, jochen wrote: > > On ...
6 years, 7 months ago (2014-05-05 17:45:09 UTC) #5
jochen (gone - plz use gerrit)
can you also hook this up to content shell? https://codereview.chromium.org/268673015/diff/1/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/268673015/diff/1/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1149 content/renderer/renderer_webkitplatformsupport_impl.cc:1149: ...
6 years, 7 months ago (2014-05-06 15:59:00 UTC) #6
Inactive
https://codereview.chromium.org/268673015/diff/1/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/268673015/diff/1/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1149 content/renderer/renderer_webkitplatformsupport_impl.cc:1149: bool isScreenOrientationAllowedByTestingLock(blink::WebScreenOrientationType On 2014/05/06 15:59:01, jochen wrote: > that ...
6 years, 7 months ago (2014-05-06 16:26:21 UTC) #7
Inactive
https://codereview.chromium.org/268673015/diff/1/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/268673015/diff/1/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1149 content/renderer/renderer_webkitplatformsupport_impl.cc:1149: bool isScreenOrientationAllowedByTestingLock(blink::WebScreenOrientationType On 2014/05/06 15:59:01, jochen wrote: > that ...
6 years, 7 months ago (2014-05-06 16:56:45 UTC) #8
Inactive
On 2014/05/06 15:59:00, jochen wrote: > can you also hook this up to content shell? ...
6 years, 7 months ago (2014-05-06 16:58:03 UTC) #9
jochen (gone - plz use gerrit)
sorry, I didn't see that it's already hooked up https://codereview.chromium.org/268673015/diff/20001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/268673015/diff/20001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode148 content/renderer/renderer_webkitplatformsupport_impl.cc:148: ...
6 years, 7 months ago (2014-05-07 06:48:41 UTC) #10
Inactive
https://codereview.chromium.org/268673015/diff/20001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/268673015/diff/20001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1149 content/renderer/renderer_webkitplatformsupport_impl.cc:1149: bool isScreenOrientationAllowedByTestingLock( On 2014/05/07 06:48:41, jochen wrote: > methods ...
6 years, 7 months ago (2014-05-07 18:41:05 UTC) #11
jochen (gone - plz use gerrit)
almost there https://codereview.chromium.org/268673015/diff/30001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/268673015/diff/30001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode153 content/renderer/renderer_webkitplatformsupport_impl.cc:153: class ScreenOrientationDataForTesting { can you move this ...
6 years, 7 months ago (2014-05-08 07:12:49 UTC) #12
Inactive
Thank you for your patience. I moved the class out and made it more object ...
6 years, 7 months ago (2014-05-08 20:07:46 UTC) #13
Inactive
ping? :)
6 years, 7 months ago (2014-05-12 14:28:11 UTC) #14
jochen (gone - plz use gerrit)
lgtm lgtm with comments addressed https://codereview.chromium.org/268673015/diff/50001/content/renderer/screen_orientation/mock_screen_orientation_controller.h File content/renderer/screen_orientation/mock_screen_orientation_controller.h (right): https://codereview.chromium.org/268673015/diff/50001/content/renderer/screen_orientation/mock_screen_orientation_controller.h#newcode36 content/renderer/screen_orientation/mock_screen_orientation_controller.h:36: }; disallow copy & ...
6 years, 7 months ago (2014-05-14 09:10:54 UTC) #15
Inactive
https://codereview.chromium.org/268673015/diff/50001/content/renderer/screen_orientation/mock_screen_orientation_controller.h File content/renderer/screen_orientation/mock_screen_orientation_controller.h (right): https://codereview.chromium.org/268673015/diff/50001/content/renderer/screen_orientation/mock_screen_orientation_controller.h#newcode36 content/renderer/screen_orientation/mock_screen_orientation_controller.h:36: }; On 2014/05/14 09:10:54, jochen wrote: > disallow copy ...
6 years, 7 months ago (2014-05-14 13:33:02 UTC) #16
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-14 13:34:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/268673015/70001
6 years, 7 months ago (2014-05-14 13:35:03 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 15:09:01 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 15:11:28 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/16459)
6 years, 7 months ago (2014-05-14 15:11:28 UTC) #21
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-14 15:12:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/268673015/70001
6 years, 7 months ago (2014-05-14 15:13:06 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 16:27:58 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 16:40:38 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/26577)
6 years, 7 months ago (2014-05-14 16:40:38 UTC) #26
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-14 17:01:15 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/268673015/70001
6 years, 7 months ago (2014-05-14 17:01:33 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 17:34:12 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 17:49:42 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/26631)
6 years, 7 months ago (2014-05-14 17:49:43 UTC) #31
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-14 17:51:31 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/268673015/70001
6 years, 7 months ago (2014-05-14 17:52:14 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 18:09:09 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 18:24:11 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/26657)
6 years, 7 months ago (2014-05-14 18:24:11 UTC) #36
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-14 19:16:43 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/268673015/70001
6 years, 7 months ago (2014-05-14 19:17:28 UTC) #38
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 19:35:40 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 19:49:58 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/26745)
6 years, 7 months ago (2014-05-14 19:49:59 UTC) #41
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-14 20:16:09 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/268673015/70001
6 years, 7 months ago (2014-05-14 20:17:11 UTC) #43
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 20:34:01 UTC) #44
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 20:48:25 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/26800)
6 years, 7 months ago (2014-05-14 20:48:26 UTC) #46
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-14 23:57:11 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/268673015/70001
6 years, 7 months ago (2014-05-14 23:59:14 UTC) #48
commit-bot: I haz the power
6 years, 7 months ago (2014-05-15 01:04:51 UTC) #49
Message was sent while issue was closed.
Change committed as 270552

Powered by Google App Engine
This is Rietveld 408576698