|
|
DescriptionFixed shelf background hiding on side shelf alignment.
Also added a test!
BUG=735495
Review-Url: https://codereview.chromium.org/2946363002
Cr-Commit-Position: refs/heads/master@{#481995}
Committed: https://chromium.googlesource.com/chromium/src/+/650e3fb5b4d1452c658b2698d7c498eff6eed277
Patch Set 1 : fixed shelf background hiding on side shelf alignment. #
Total comments: 10
Patch Set 2 : Added 1 liner to fix shelf background hiding on side shelf alignment. #
Total comments: 2
Patch Set 3 : Added 1 liner to fix shelf background hiding on side shelf alignment. #Patch Set 4 : Added 1 liner to fix shelf background hiding on side shelf alignment. #
Messages
Total messages: 32 (24 generated)
Description was changed from ========== Added 1 liner to fix shelf background hiding on side shelf alignment. BUG=735495 ========== to ========== Added 1 liner to fix shelf background hiding on side shelf alignment. BUG=735495 ==========
newcomer@chromium.org changed reviewers: + jamescook@chromium.org, vadimt@chromium.org
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
Description was changed from ========== Added 1 liner to fix shelf background hiding on side shelf alignment. BUG=735495 ========== to ========== Fixed shelf background hiding on side shelf alignment. BUG=735495 ==========
Description was changed from ========== Fixed shelf background hiding on side shelf alignment. BUG=735495 ========== to ========== Fixed shelf background hiding on side shelf alignment. Also added a test! BUG=735495 ==========
PTAL! Short cl. -Alex
The CQ bit was checked by newcomer@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 https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:251: // Set the alignment to the side and show the app list. The background should nit: empty line before
https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:241: Shelf* shelf = nit: You can just do GetPrimaryShelf(). It's a method on AshTestBase. https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:245: // Show the app list, the shelf background should be hidden. super-nit: "hidden" sounds like shelf autohide. I would say "transparent". https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:258: } // namespace ash nit: blank line above https://codereview.chromium.org/2946363002/diff/40001/ash/shelf/shelf_layout_... File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2946363002/diff/40001/ash/shelf/shelf_layout_... ash/shelf/shelf_layout_manager.cc:485: app_list::features::IsFullscreenAppListEnabled()) IsFullscreenAppListEnabled() runs a non-trivial amount of code. I think you should either: * Cache the result here in a local variable, or * Cache the value in a const member variable for this class (since it won't change at runtime and this object is torn down between tests)
Thanks for the quick feedback! Responded to comments! -Alex https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:241: Shelf* shelf = On 2017/06/21 23:57:32, James Cook wrote: > nit: You can just do GetPrimaryShelf(). It's a method on AshTestBase. Wow Awesome. Thanks! https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:245: // Show the app list, the shelf background should be hidden. On 2017/06/21 23:57:32, James Cook wrote: > super-nit: "hidden" sounds like shelf autohide. I would say "transparent". Done. https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:251: // Set the alignment to the side and show the app list. The background should On 2017/06/21 23:45:32, vadimt wrote: > nit: empty line before Done. https://codereview.chromium.org/2946363002/diff/40001/ash/app_list/app_list_p... ash/app_list/app_list_presenter_delegate_unittest.cc:258: } // namespace ash On 2017/06/21 23:57:32, James Cook wrote: > nit: blank line above Done. https://codereview.chromium.org/2946363002/diff/40001/ash/shelf/shelf_layout_... File ash/shelf/shelf_layout_manager.cc (right): https://codereview.chromium.org/2946363002/diff/40001/ash/shelf/shelf_layout_... ash/shelf/shelf_layout_manager.cc:485: app_list::features::IsFullscreenAppListEnabled()) On 2017/06/21 23:57:33, James Cook wrote: > IsFullscreenAppListEnabled() runs a non-trivial amount of code. I think you > should either: > > * Cache the result here in a local variable, or > * Cache the value in a const member variable for this class (since it won't > change at runtime and this object is torn down between tests) I picked option 2 because that's what I've done elsewhere! Done.
LGTM with nit. Thanks for adding test coverage! https://codereview.chromium.org/2946363002/diff/60001/ash/shelf/shelf_layout_... File ash/shelf/shelf_layout_manager.h (right): https://codereview.chromium.org/2946363002/diff/60001/ash/shelf/shelf_layout_... ash/shelf/shelf_layout_manager.h:332: bool is_fullscreen_app_list_enabled_; nit: const
The CQ bit was checked by newcomer@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: Try jobs failed on following builders: linux_chromium_chromeos_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 newcomer@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...
Patchset #4 (id:100001) has been deleted
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_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 newcomer@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.
The CQ bit was checked by newcomer@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from vadimt@chromium.org, jamescook@chromium.org Link to the patchset: https://codereview.chromium.org/2946363002/#ps120001 (title: "Added 1 liner to fix shelf background hiding on side shelf alignment.")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 120001, "attempt_start_ts": 1498247440692720, "parent_rev": "fd86d1f58b8f648498cb2ba93be84aff80e6ab1d", "commit_rev": "650e3fb5b4d1452c658b2698d7c498eff6eed277"}
Message was sent while issue was closed.
Description was changed from ========== Fixed shelf background hiding on side shelf alignment. Also added a test! BUG=735495 ========== to ========== Fixed shelf background hiding on side shelf alignment. Also added a test! BUG=735495 Review-Url: https://codereview.chromium.org/2946363002 Cr-Commit-Position: refs/heads/master@{#481995} Committed: https://chromium.googlesource.com/chromium/src/+/650e3fb5b4d1452c658b2698d7c4... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as https://chromium.googlesource.com/chromium/src/+/650e3fb5b4d1452c658b2698d7c4...
Message was sent while issue was closed.
https://codereview.chromium.org/2946363002/diff/60001/ash/shelf/shelf_layout_... File ash/shelf/shelf_layout_manager.h (right): https://codereview.chromium.org/2946363002/diff/60001/ash/shelf/shelf_layout_... ash/shelf/shelf_layout_manager.h:332: bool is_fullscreen_app_list_enabled_; On 2017/06/22 00:32:46, James Cook wrote: > nit: const Done. |