New issue
Advanced search Search tips

Issue 686341 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: May 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Refactor of ShouldBlockShelfAutoHide() and ShouldShowShelf()

Project Member Reported by tdander...@chromium.org, Jan 28 2017

Issue description

A handful of TrayBackgroundView subclasses implement ShouldBlockShelfAutoHide() in a seemingly identical way, which presents an opportunity for refactoring.

 
Labels: Hotlist-CodeHealth
Owner: est...@chromium.org
Status: Assigned (was: Available)
Labels: -M-58 M-59
Labels: -M-59
Project Member

Comment 5 by bugdroid1@chromium.org, Apr 26 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6806c795184e4012764bf389f63f95c4e266d382

commit 6806c795184e4012764bf389f63f95c4e266d382
Author: estade <estade@chromium.org>
Date: Wed Apr 26 16:27:22 2017

Remove ShouldBlockShelfAutoHide().

Instead, don't auto-hide the shelf if any TrayBubbleView is open.

I considered making this check if any TrayBackgroundView is active, but
some like the virtual keyboard can be active without wanting to block
the shelf from auto hiding.

BUG= 686341 

Review-Url: https://codereview.chromium.org/2831233003
Cr-Commit-Position: refs/heads/master@{#467342}

[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ash/system/ime_menu/ime_menu_tray.cc
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ash/system/ime_menu/ime_menu_tray.h
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ash/system/ime_menu/ime_menu_tray_unittest.cc
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ash/system/palette/palette_tray.cc
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ash/system/palette/palette_tray.h
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ash/system/status_area_widget.cc
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ash/system/web_notification/web_notification_tray.cc
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ui/views/bubble/tray_bubble_view.cc
[modify] https://crrev.com/6806c795184e4012764bf389f63f95c4e266d382/ui/views/bubble/tray_bubble_view.h

Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)

Sign in to add a comment