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

Issue 302553007: Call RenderViewImpl::SetScreenOrientationForTesting to make sure that events are not sent when orie… (Closed)

Created:
6 years, 7 months ago by ostap
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Call RenderViewImpl::SetScreenOrientationForTesting from MockScreenOrientationController::UpdateScreenOrientation() to make sure that events are not sent when orientation is locked. Existing implementation calls SetScreenOrientationForTesting and sends screen orientation events even when the test screen orientation is locked. BUG=162827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276517

Patch Set 1 #

Total comments: 10

Patch Set 2 : Updated by review comments. #

Patch Set 3 : Rebased patch. #

Patch Set 4 : Remove call to test reset from ~RenderViewImpl() . #

Patch Set 5 : Remove change in render_view_impl.cc #

Total comments: 5

Patch Set 6 : Updated by review comments. #

Total comments: 10

Patch Set 7 : Updated by review comments. #

Patch Set 8 : Fix clang build. #

Patch Set 9 : Add and remove observer inside SetRenderView(). #

Total comments: 10

Patch Set 10 : Updated by review comments. #

Patch Set 11 : Now ResetMockScreenOrientationForTesting() is called on every layout test finish, so replaced DCHEC… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -10 lines) Patch
M content/public/renderer/render_view_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/renderer/render_view_observer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -1 line 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/screen_orientation/mock_screen_orientation_controller.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -2 lines 0 comments Download
M content/renderer/screen_orientation/mock_screen_orientation_controller.cc View 1 2 3 4 5 6 7 8 9 5 chunks +24 lines, -1 line 0 comments Download
M content/test/layouttest_support.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
ostap
6 years, 7 months ago (2014-05-27 18:37:57 UTC) #1
Inactive
https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc#newcode835 content/renderer/render_view_impl.cc:835: if (RenderThreadImpl::current()->layout_test_mode()) { nit: Useless curly brackets? https://codereview.chromium.org/302553007/diff/1/content/renderer/renderer_webkitplatformsupport_impl.cc File ...
6 years, 6 months ago (2014-05-28 12:02:20 UTC) #2
mlamouri (slow - plz ping)
https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc#newcode836 content/renderer/render_view_impl.cc:836: RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationRenderView(); Can't we make the render_view_ reset happen in ...
6 years, 6 months ago (2014-05-28 13:45:19 UTC) #3
ostap
https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc#newcode835 content/renderer/render_view_impl.cc:835: if (RenderThreadImpl::current()->layout_test_mode()) { On 2014/05/28 12:02:20, Chris Dumez wrote: ...
6 years, 6 months ago (2014-05-28 19:17:04 UTC) #4
mlamouri (slow - plz ping)
https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc#newcode836 content/renderer/render_view_impl.cc:836: RendererWebKitPlatformSupportImpl::ResetMockScreenOrientationRenderView(); On 2014/05/28 19:17:05, ostap wrote: > On 2014/05/28 ...
6 years, 6 months ago (2014-05-29 14:51:54 UTC) #5
ostap
On 2014/05/29 14:51:54, Mounir Lamouri wrote: > https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/302553007/diff/1/content/renderer/render_view_impl.cc#newcode836 ...
6 years, 6 months ago (2014-05-29 20:09:16 UTC) #6
mlamouri (slow - plz ping)
https://codereview.chromium.org/302553007/diff/70001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/302553007/diff/70001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1083 content/renderer/renderer_webkitplatformsupport_impl.cc:1083: if (!(g_test_screen_orientation_controller == 0)) { Why do you need ...
6 years, 6 months ago (2014-05-30 09:07:56 UTC) #7
ostap
https://codereview.chromium.org/302553007/diff/70001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/302553007/diff/70001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1083 content/renderer/renderer_webkitplatformsupport_impl.cc:1083: if (!(g_test_screen_orientation_controller == 0)) { On 2014/05/30 09:07:57, Mounir ...
6 years, 6 months ago (2014-05-30 15:21:43 UTC) #8
mlamouri (slow - plz ping)
LGTM. Thanks for the patch! :)
6 years, 6 months ago (2014-05-30 15:39:46 UTC) #9
jochen (gone - plz use gerrit)
https://codereview.chromium.org/302553007/diff/90001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/302553007/diff/90001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1083 content/renderer/renderer_webkitplatformsupport_impl.cc:1083: assert(!(g_test_screen_orientation_controller == 0)); DCHECK(g_test_screen_orientation_controller) https://codereview.chromium.org/302553007/diff/90001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1084 content/renderer/renderer_webkitplatformsupport_impl.cc:1084: g_test_screen_orientation_controller.Get().ResetData(); .Get() will ...
6 years, 6 months ago (2014-06-02 07:21:24 UTC) #10
ostap
https://codereview.chromium.org/302553007/diff/90001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/302553007/diff/90001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1083 content/renderer/renderer_webkitplatformsupport_impl.cc:1083: assert(!(g_test_screen_orientation_controller == 0)); On 2014/06/02 07:21:25, jochen wrote: > ...
6 years, 6 months ago (2014-06-03 00:11:53 UTC) #11
jochen (gone - plz use gerrit)
lgtm with nits addressed https://codereview.chromium.org/302553007/diff/150001/content/public/renderer/render_view_observer.cc File content/public/renderer/render_view_observer.cc (right): https://codereview.chromium.org/302553007/diff/150001/content/public/renderer/render_view_observer.cc#newcode16 content/public/renderer/render_view_observer.cc:16: // |render_view| can be NULL ...
6 years, 6 months ago (2014-06-03 12:52:25 UTC) #12
ostap
https://codereview.chromium.org/302553007/diff/150001/content/public/renderer/render_view_observer.cc File content/public/renderer/render_view_observer.cc (right): https://codereview.chromium.org/302553007/diff/150001/content/public/renderer/render_view_observer.cc#newcode16 content/public/renderer/render_view_observer.cc:16: // |render_view| can be NULL on unit testing. On ...
6 years, 6 months ago (2014-06-03 15:32:31 UTC) #13
mlamouri (slow - plz ping)
Is there something missing to land this CL?
6 years, 6 months ago (2014-06-05 17:04:46 UTC) #14
ostap
On 2014/06/05 17:04:46, Mounir Lamouri wrote: > Is there something missing to land this CL? ...
6 years, 6 months ago (2014-06-06 00:17:47 UTC) #15
jochen (gone - plz use gerrit)
On 2014/06/06 00:17:47, ostap wrote: > On 2014/06/05 17:04:46, Mounir Lamouri wrote: > > Is ...
6 years, 6 months ago (2014-06-06 13:28:16 UTC) #16
ostap
The CQ bit was checked by sl.ostapenko@samsung.com
6 years, 6 months ago (2014-06-06 21:06:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sl.ostapenko@samsung.com/302553007/170001
6 years, 6 months ago (2014-06-06 21:07:04 UTC) #18
commit-bot: I haz the power
Change committed as 275535
6 years, 6 months ago (2014-06-06 21:49:56 UTC) #19
abarth-chromium
A revert of this CL has been created in https://codereview.chromium.org/323663002/ by abarth@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-07 00:03:25 UTC) #20
ostap
https://codereview.chromium.org/302553007/diff/70001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): https://codereview.chromium.org/302553007/diff/70001/content/renderer/renderer_webkitplatformsupport_impl.cc#newcode1083 content/renderer/renderer_webkitplatformsupport_impl.cc:1083: if (!(g_test_screen_orientation_controller == 0)) { On 2014/05/30 09:07:57, Mounir ...
6 years, 6 months ago (2014-06-10 18:02:53 UTC) #21
ostap
The CQ bit was checked by sl.ostapenko@samsung.com
6 years, 6 months ago (2014-06-11 18:29:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sl.ostapenko@samsung.com/302553007/190001
6 years, 6 months ago (2014-06-11 18:32:57 UTC) #23
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 03:40:08 UTC) #24
Message was sent while issue was closed.
Change committed as 276517

Powered by Google App Engine
This is Rietveld 408576698