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

Issue 11646008: Close avatar bubble when avatar button is clicked a second time (Closed)

Created:
7 years, 12 months ago by sail
Modified:
7 years, 11 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Close avatar bubble when avatar button is clicked a second time Currently when the avatar button is clicked a second time the avatar bubble closes then immediately opens again. The problem is that the same mouse event that closes the bubble also causes to open again. To fix this I've changed AvatarMenuBubbleView to track it's current instance. If a caller tries to show the bubble while an instance is already being shown then the show request is ignored. BUG=107876 TEST=Clicked on the avatar button a second time and verified that the avatar bubble stayed closed. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175220

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review comments #

Total comments: 4

Patch Set 3 : address comments #

Patch Set 4 : fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -20 lines) Patch
M chrome/browser/ui/views/avatar_menu_bubble_view.h View 1 2 3 chunks +26 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_bubble_view.cc View 1 2 4 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.cc View 1 3 chunks +2 lines, -9 lines 0 comments Download
A chrome/browser/ui/views/avatar_menu_button_browsertest.cc View 1 2 3 1 chunk +62 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sail
7 years, 12 months ago (2012-12-28 01:49:07 UTC) #1
Peter Kasting
https://codereview.chromium.org/11646008/diff/1/chrome/browser/ui/views/avatar_menu_button.cc File chrome/browser/ui/views/avatar_menu_button.cc (right): https://codereview.chromium.org/11646008/diff/1/chrome/browser/ui/views/avatar_menu_button.cc#newcode178 chrome/browser/ui/views/avatar_menu_button.cc:178: show_avatar_bubble_closure_.callback()); This has three problems: (1) It makes the ...
7 years, 11 months ago (2012-12-28 18:55:55 UTC) #2
sail
https://codereview.chromium.org/11646008/diff/1/chrome/browser/ui/views/avatar_menu_button.cc File chrome/browser/ui/views/avatar_menu_button.cc (right): https://codereview.chromium.org/11646008/diff/1/chrome/browser/ui/views/avatar_menu_button.cc#newcode178 chrome/browser/ui/views/avatar_menu_button.cc:178: show_avatar_bubble_closure_.callback()); On 2012/12/28 18:55:55, Peter Kasting wrote: > This ...
7 years, 11 months ago (2013-01-02 21:06:01 UTC) #3
Peter Kasting
LGTM, but please update the change description. https://codereview.chromium.org/11646008/diff/5001/chrome/browser/ui/views/avatar_menu_bubble_view.h File chrome/browser/ui/views/avatar_menu_bubble_view.h (right): https://codereview.chromium.org/11646008/diff/5001/chrome/browser/ui/views/avatar_menu_bubble_view.h#newcode33 chrome/browser/ui/views/avatar_menu_bubble_view.h:33: static void ...
7 years, 11 months ago (2013-01-04 00:58:43 UTC) #4
sail
https://codereview.chromium.org/11646008/diff/5001/chrome/browser/ui/views/avatar_menu_bubble_view.h File chrome/browser/ui/views/avatar_menu_bubble_view.h (right): https://codereview.chromium.org/11646008/diff/5001/chrome/browser/ui/views/avatar_menu_bubble_view.h#newcode33 chrome/browser/ui/views/avatar_menu_bubble_view.h:33: static void ShowBubble(views::View* anchor_view, On 2013/01/04 00:58:43, Peter Kasting ...
7 years, 11 months ago (2013-01-04 19:23:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11646008/11001
7 years, 11 months ago (2013-01-04 19:23:09 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-04 19:47:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/11646008/12009
7 years, 11 months ago (2013-01-04 20:11:22 UTC) #8
commit-bot: I haz the power
7 years, 11 months ago (2013-01-04 22:57:45 UTC) #9
Message was sent while issue was closed.
Change committed as 175220

Powered by Google App Engine
This is Rietveld 408576698