|
|
Chromium Code Reviews|
Created:
4 years, 5 months ago by msw Modified:
4 years, 5 months ago CC:
chromium-reviews, mlamouri+watch-screen-orientation_chromium.org, darin-cc_chromium.org, jam, sadrul, kalyank Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Descriptionmash: Partially migrate ScreenOrientationController to ash/common.
Use ash/common types for observers and windows.
Use WmShell::GetDisplayInfo instead of DisplayManager.
Add WmWindowObserver::OnWindowVisibilityChanged.
TODO: Fix remaining DisplayManager uses.
TODO: Fix display_configuration_controller uses.
BUG=619636
TEST=compiles; unit tests; no behavior changes.
R=jamescook@chromium.org
TBR=sky@chromium.org
Committed: https://crrev.com/a8c8a5545454b85d358c2345e0d41edf3e9dd2eb
Cr-Commit-Position: refs/heads/master@{#404906}
Patch Set 1 #Patch Set 2 : Use WmShell::GetDisplayInfo instead of DisplayManager. #Patch Set 3 : Sync and rebase; explicitily call OnWindowVisibilityChanging. #
Total comments: 4
Patch Set 4 : Add and use WmWindowObserver::OnWindowVisibilityChanged. #Patch Set 5 : Sync and rebase. #
Messages
Total messages: 49 (27 generated)
Description was changed from ========== mash: Partially migrate ScreenOrientationController to ash/common. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org ========== to ========== mash: Partially migrate ScreenOrientationController to ash/common. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org ==========
Description was changed from ========== mash: Partially migrate ScreenOrientationController to ash/common. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org ========== to ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org ==========
Hey James, please take a look; thanks! (sorry it's not easy to do in one swoop...)
The CQ bit was checked by msw@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
LGTM
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by msw@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Hey James, does the test file change look ok?
jonross@chromium.org changed reviewers: + jonross@chromium.org
https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... File ash/content/display/screen_orientation_controller_chromeos_unittest.cc (right): https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... ash/content/display/screen_orientation_controller_chromeos_unittest.cc:303: controller->OnWindowVisibilityChanging(window, false); I'm a bit concerned that this is not being triggered
https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... File ash/content/display/screen_orientation_controller_chromeos_unittest.cc (right): https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... ash/content/display/screen_orientation_controller_chromeos_unittest.cc:303: controller->OnWindowVisibilityChanging(window, false); On 2016/07/11 19:48:13, jonross wrote: > I'm a bit concerned that this is not being triggered Might be async WmWindow behavior, or a plumbing issue. Any tips?
https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... File ash/content/display/screen_orientation_controller_chromeos_unittest.cc (right): https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... ash/content/display/screen_orientation_controller_chromeos_unittest.cc:303: controller->OnWindowVisibilityChanging(window, false); On 2016/07/11 20:02:31, msw wrote: > On 2016/07/11 19:48:13, jonross wrote: > > I'm a bit concerned that this is not being triggered > > Might be async WmWindow behavior, or a plumbing issue. Any tips? ScreenOrientationController should become a listener of WmWindow once Lock is called (line 296.) I'd look to see what's happening with WmWindow, to see if the notification is being fired correctly.
I'll have an update soon. https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... File ash/content/display/screen_orientation_controller_chromeos_unittest.cc (right): https://codereview.chromium.org/2134753004/diff/40001/ash/content/display/scr... ash/content/display/screen_orientation_controller_chromeos_unittest.cc:303: controller->OnWindowVisibilityChanging(window, false); On 2016/07/11 20:10:58, jonross wrote: > On 2016/07/11 20:02:31, msw wrote: > > On 2016/07/11 19:48:13, jonross wrote: > > > I'm a bit concerned that this is not being triggered > > > > Might be async WmWindow behavior, or a plumbing issue. Any tips? > > ScreenOrientationController should become a listener of WmWindow once Lock is > called (line 296.) I'd look to see what's happening with WmWindow, to see if the > notification is being fired correctly. Thanks for pushing me to dig in; I'll need to implement WmWindowObserver::OnWindowVisibilityChanged for this to work as it did; the target visibility has updated before WmWindowObserver::OnWindowVisibilityChanging is called... that should have ben obvious to me earlier.
Description was changed from ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org ========== to ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. Add WmWindowObserver::OnWindowVisibilityChanged. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org ==========
Description was changed from ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. Add WmWindowObserver::OnWindowVisibilityChanged. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org ========== to ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. Add WmWindowObserver::OnWindowVisibilityChanged. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org TBR=sky@chromium.org ==========
Added WmWindowObserver::OnWindowVisibilityChanged (very simple) and removed the test changes. LMK if there are any more comments. TBR'ing Scott for chrome/* and landing.
The CQ bit was checked by msw@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jamescook@chromium.org Link to the patchset: https://codereview.chromium.org/2134753004/#ps60001 (title: "Add and use WmWindowObserver::OnWindowVisibilityChanged.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by msw@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by msw@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
On 2016/07/12 15:51:15, commit-bot: I haz the power wrote: > Try jobs failed on following builders: > linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, > http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) LGTM. Thanks for hunting that down!
The CQ bit was checked by msw@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by msw@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by msw@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jamescook@chromium.org, jonross@chromium.org Link to the patchset: https://codereview.chromium.org/2134753004/#ps80001 (title: "Sync and rebase.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. Add WmWindowObserver::OnWindowVisibilityChanged. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org TBR=sky@chromium.org ========== to ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. Add WmWindowObserver::OnWindowVisibilityChanged. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org TBR=sky@chromium.org ==========
Message was sent while issue was closed.
Committed patchset #5 (id:80001)
Message was sent while issue was closed.
CQ bit was unchecked.
Message was sent while issue was closed.
Description was changed from ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. Add WmWindowObserver::OnWindowVisibilityChanged. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org TBR=sky@chromium.org ========== to ========== mash: Partially migrate ScreenOrientationController to ash/common. Use ash/common types for observers and windows. Use WmShell::GetDisplayInfo instead of DisplayManager. Add WmWindowObserver::OnWindowVisibilityChanged. TODO: Fix remaining DisplayManager uses. TODO: Fix display_configuration_controller uses. BUG=619636 TEST=compiles; unit tests; no behavior changes. R=jamescook@chromium.org TBR=sky@chromium.org Committed: https://crrev.com/a8c8a5545454b85d358c2345e0d41edf3e9dd2eb Cr-Commit-Position: refs/heads/master@{#404906} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/a8c8a5545454b85d358c2345e0d41edf3e9dd2eb Cr-Commit-Position: refs/heads/master@{#404906} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
