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

Issue 413433002: Refactor BubbleDelegateView::use_focuseless() (Closed)

Created:
6 years, 5 months ago by vasilii
Modified:
6 years, 4 months ago
Reviewers:
msw, sky, Dan Beam
CC:
chromium-reviews, msw+watch_chromium.org, sadrul, mkwst+watchlist_chromium.org, benquan, tfarina, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org, kalyank, gcasto+watchlist_chromium.org, alicet1, Ilya Sherman, ben+ash_chromium.org
Project:
chromium
Visibility:
Public.

Description

Refactor BubbleDelegateView::use_focuseless(). It's confusing because it prevents the bubble activation. As a side effect on Windows the bubble doesn't get LBUTTON_DOWN messages. The reason for that is in HWNDMessageHandler::OnMouseActivate(). It asks the bubble if it can be activated. It answers "no" due to implementation in BubbleDelegateView::CanActivate(). Windows gets MA_NOACTIVATEANDEAT and MouseDown event isn't dispatched. This is definitely unexpected. The bubbles which indeed always inactive should use set_can_activate(false) at construction time. The bubbles which can be active but created without focus by default should use ShowInactive() instead. BUG=392734 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285682

Patch Set 1 #

Patch Set 2 : cros compilation #

Total comments: 12

Patch Set 3 : Fixed typo #

Total comments: 6

Patch Set 4 : Don't reopen the bubble without good reason #

Total comments: 2

Patch Set 5 : nit + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -46 lines) Patch
M ash/ime/candidate_window_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/ime/infolist_window.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/ime/mode_indicator_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/popup_message.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/overflow_bubble_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf_tooltip_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/network/network_state_list_detailed_view.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autofill/info_bubble.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autofill/tooltip_icon.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 2 3 4 5 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 2 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/ui/views/validation_message_bubble_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/bubble/bubble_delegate.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/views/bubble/bubble_delegate.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/views/touchui/touch_editing_menu.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
vasilii
Hi guys, please review.
6 years, 5 months ago (2014-07-23 08:32:49 UTC) #1
msw
+dbeam for ZoomBubbleView, +vasilii for ManagePasswordsBubbleView. https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (left): https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#oldcode142 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:142: set_use_focusless(auto_close); You've removed ...
6 years, 5 months ago (2014-07-23 18:57:00 UTC) #2
Dan Beam
> +dbeam for ZoomBubbleView, +vasilii for ManagePasswordsBubbleView. i'd guess vasilii@ agrees with the author's code ...
6 years, 5 months ago (2014-07-23 23:03:34 UTC) #3
vasilii
There was some confusion about ZoomBubbleView. It can be shown with or without focus. However, ...
6 years, 4 months ago (2014-07-24 16:32:14 UTC) #4
msw
https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (right): https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#newcode78 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:78: // If the bubble is already showing but its ...
6 years, 4 months ago (2014-07-24 16:52:28 UTC) #5
Dan Beam
On 2014/07/24 16:52:28, msw wrote: > https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc > File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (right): > > https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#newcode78 > ...
6 years, 4 months ago (2014-07-24 17:32:02 UTC) #6
msw
On 2014/07/24 17:32:02, Dan Beam wrote: > On 2014/07/24 16:52:28, msw wrote: > > > ...
6 years, 4 months ago (2014-07-24 18:02:54 UTC) #7
Dan Beam
On 2014/07/24 18:02:54, msw wrote: > On 2014/07/24 17:32:02, Dan Beam wrote: > > On ...
6 years, 4 months ago (2014-07-24 18:26:52 UTC) #8
msw
On 2014/07/24 18:26:52, Dan Beam wrote: > On 2014/07/24 18:02:54, msw wrote: > > On ...
6 years, 4 months ago (2014-07-24 18:42:19 UTC) #9
Dan Beam
On 2014/07/24 18:42:19, msw wrote: > On 2014/07/24 18:26:52, Dan Beam wrote: > > On ...
6 years, 4 months ago (2014-07-24 19:20:54 UTC) #10
msw
On 2014/07/24 19:20:54, Dan Beam wrote: > On 2014/07/24 18:42:19, msw wrote: > > I ...
6 years, 4 months ago (2014-07-24 19:46:12 UTC) #11
Dan Beam
On 2014/07/24 19:46:12, msw wrote: > On 2014/07/24 19:20:54, Dan Beam wrote: > > On ...
6 years, 4 months ago (2014-07-24 21:45:11 UTC) #12
Dan Beam
On 2014/07/24 21:45:11, Dan Beam wrote: > On 2014/07/24 19:46:12, msw wrote: > > On ...
6 years, 4 months ago (2014-07-24 21:46:34 UTC) #13
msw
https://codereview.chromium.org/413433002/diff/60001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (right): https://codereview.chromium.org/413433002/diff/60001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#newcode66 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:66: // If the bubble is already showing in this ...
6 years, 4 months ago (2014-07-24 22:16:33 UTC) #14
Dan Beam
https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (left): https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#oldcode142 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:142: set_use_focusless(auto_close); On 2014/07/24 16:32:13, vasilii wrote: > On 2014/07/23 ...
6 years, 4 months ago (2014-07-24 23:24:51 UTC) #15
vasilii
https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (left): https://codereview.chromium.org/413433002/diff/40001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#oldcode142 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:142: set_use_focusless(auto_close); On 2014/07/24 23:24:51, Dan Beam wrote: > On ...
6 years, 4 months ago (2014-07-25 15:27:43 UTC) #16
msw
lgtm with a nit; thanks for bearing with our discussion. https://codereview.chromium.org/413433002/diff/80001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (right): https://codereview.chromium.org/413433002/diff/80001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#newcode76 ...
6 years, 4 months ago (2014-07-25 15:38:38 UTC) #17
vasilii
No problem. Scott, Dan, please review. https://codereview.chromium.org/413433002/diff/80001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc File chrome/browser/ui/views/location_bar/zoom_bubble_view.cc (right): https://codereview.chromium.org/413433002/diff/80001/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc#newcode76 chrome/browser/ui/views/location_bar/zoom_bubble_view.cc:76: // If the ...
6 years, 4 months ago (2014-07-25 15:48:20 UTC) #18
sky
LGTM
6 years, 4 months ago (2014-07-25 16:26:42 UTC) #19
Dan Beam
lgtm
6 years, 4 months ago (2014-07-25 18:05:12 UTC) #20
vasilii
The CQ bit was checked by vasilii@chromium.org
6 years, 4 months ago (2014-07-25 20:25:38 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vasilii@chromium.org/413433002/100001
6 years, 4 months ago (2014-07-25 20:27:14 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-07-25 21:21:53 UTC) #23
Message was sent while issue was closed.
Change committed as 285682

Powered by Google App Engine
This is Rietveld 408576698