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

Issue 2831233003: Remove ShouldBlockShelfAutoHide(). (Closed)

Created:
3 years, 8 months ago by Evan Stade
Modified:
3 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, groby+bubble_chromium.org, sadrul, tfarina, msw+watch_chromium.org, hcarmona+bubble_chromium.org, kalyank, rouslan+bubble_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/6806c795184e4012764bf389f63f95c4e266d382

Patch Set 1 #

Patch Set 2 : bubble lifetimes #

Total comments: 4

Patch Set 3 : review feedback #

Patch Set 4 : this won't work until https://codereview.chromium.org/2834943002 lands #

Total comments: 2

Patch Set 5 : rename and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -51 lines) Patch
M ash/system/ime_menu/ime_menu_tray.h View 2 chunks +0 lines, -4 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray.cc View 4 chunks +0 lines, -7 lines 0 comments Download
M ash/system/ime_menu/ime_menu_tray_unittest.cc View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M ash/system/palette/palette_tray.h View 2 chunks +0 lines, -8 lines 0 comments Download
M ash/system/palette/palette_tray.cc View 3 chunks +0 lines, -9 lines 0 comments Download
M ash/system/status_area_widget.cc View 1 chunk +2 lines, -12 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 4 chunks +1 line, -8 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.h View 1 2 3 3 chunks +6 lines, -2 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 1 2 3 4 4 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Evan Stade
sky, ptal. This once again raises the issue that TrayBubbleView is probably located in the ...
3 years, 8 months ago (2017-04-21 18:14:13 UTC) #10
sky
Do existing tests cover this? https://codereview.chromium.org/2831233003/diff/20001/ui/views/bubble/tray_bubble_view.cc File ui/views/bubble/tray_bubble_view.cc (right): https://codereview.chromium.org/2831233003/diff/20001/ui/views/bubble/tray_bubble_view.cc#newcode248 ui/views/bubble/tray_bubble_view.cc:248: ++g_current_tray_bubble_view_count_; Is there a ...
3 years, 8 months ago (2017-04-21 20:43:50 UTC) #11
Evan Stade
On 2017/04/21 20:43:50, sky wrote: > Do existing tests cover this? I thought so, but ...
3 years, 8 months ago (2017-04-22 00:10:25 UTC) #12
sky
LGTM https://codereview.chromium.org/2831233003/diff/60001/ui/views/bubble/tray_bubble_view.cc File ui/views/bubble/tray_bubble_view.cc (right): https://codereview.chromium.org/2831233003/diff/60001/ui/views/bubble/tray_bubble_view.cc#newcode54 ui/views/bubble/tray_bubble_view.cc:54: int g_current_tray_bubble_view_count_ = 0; optional: name this g_current_tray_showing_count ...
3 years, 8 months ago (2017-04-24 15:32:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2831233003/80001
3 years, 8 months ago (2017-04-26 15:22:49 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/6806c795184e4012764bf389f63f95c4e266d382
3 years, 8 months ago (2017-04-26 16:27:40 UTC) #19
Evan Stade
3 years, 7 months ago (2017-04-27 01:33:49 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2831233003/diff/60001/ui/views/bubble/tray_bu...
File ui/views/bubble/tray_bubble_view.cc (right):

https://codereview.chromium.org/2831233003/diff/60001/ui/views/bubble/tray_bu...
ui/views/bubble/tray_bubble_view.cc:54: int g_current_tray_bubble_view_count_ =
0;
On 2017/04/24 15:32:40, sky wrote:
> optional: name this g_current_tray_showing_count (or something to indicate it
> corresponds to showing bubbles).

Done.

Powered by Google App Engine
This is Rietveld 408576698