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

Issue 300113009: Fix BaseBubbleController close issue. (Closed)

Created:
6 years, 6 months ago by Xuefei Ren
Modified:
6 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix BaseBubbleController close issue. A bubble should disappear when we right mouse click on a blank space. Add event monitor for NSRightMouseDownMask, and change not to use performSelector, for sometimes when rightmouse down happens, a menu comes out. This menu might be a Modal Dialogue Box. So we can't perform the windowDidResignKey until the menu is closed. BUG=378186 TEST="--gtest_filter=BaseBubbleControllerTest.*" R=rsesek@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276875

Patch Set 1 #

Total comments: 3

Patch Set 2 : unit_test #

Total comments: 15

Patch Set 3 : style fixing #

Total comments: 4

Patch Set 4 : style fixing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -10 lines) Patch
M chrome/browser/ui/cocoa/base_bubble_controller.mm View 1 2 3 1 chunk +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/base_bubble_controller_unittest.mm View 1 2 3 5 chunks +137 lines, -4 lines 0 comments Download
M ui/events/test/cocoa_test_event_utils.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/test/cocoa_test_event_utils.mm View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
Xuefei Ren
6 years, 6 months ago (2014-05-28 08:38:38 UTC) #1
Nico
It's still possible to right-click the bubble itself and do things like "inspect element" with ...
6 years, 6 months ago (2014-05-28 08:50:15 UTC) #2
Nico
Oh, and can you add a short "TEST=" section that describes how to manually test ...
6 years, 6 months ago (2014-05-28 08:52:38 UTC) #3
Xuefei Ren
ok, I'll do it ASAP. On Wed, May 28, 2014 at 4:52 PM, <thakis@chromium.org> wrote: ...
6 years, 6 months ago (2014-05-28 09:00:50 UTC) #4
Xuefei Ren
On 2014/05/28 08:50:15, Nico (traveling) wrote: > It's still possible to right-click the bubble itself ...
6 years, 6 months ago (2014-05-28 09:24:32 UTC) #5
Robert Sesek
https://codereview.chromium.org/300113009/diff/1/chrome/browser/ui/cocoa/base_bubble_controller.mm File chrome/browser/ui/cocoa/base_bubble_controller.mm (right): https://codereview.chromium.org/300113009/diff/1/chrome/browser/ui/cocoa/base_bubble_controller.mm#newcode249 chrome/browser/ui/cocoa/base_bubble_controller.mm:249: // it may pop up a menu. windowDidResignKey will ...
6 years, 6 months ago (2014-05-28 19:47:03 UTC) #6
Xuefei Ren
Hi there, I was trying to write an unit test today. But I got a ...
6 years, 6 months ago (2014-05-29 09:15:27 UTC) #7
Robert Sesek
On 2014/05/29 09:15:27, Xuefei Ren wrote: > Hi there, > I was trying to write ...
6 years, 6 months ago (2014-05-29 13:19:52 UTC) #8
Xuefei Ren
Oh, thanks. Great help. On Thu, May 29, 2014 at 9:19 PM, <rsesek@chromium.org> wrote: > ...
6 years, 6 months ago (2014-05-30 05:41:45 UTC) #9
Robert Sesek
I see you uploaded a test. Is this ready for another look?
6 years, 6 months ago (2014-06-04 19:47:42 UTC) #10
Xuefei Ren
Oh,yes,please take a look. 发自我的 iPhone > 在 2014年6月5日,3:47,rsesek@chromium.org 写道: > > I see you ...
6 years, 6 months ago (2014-06-04 23:00:26 UTC) #11
Xuefei Ren
And you can assign me some bugs to me. My work is easy and I ...
6 years, 6 months ago (2014-06-05 09:59:44 UTC) #12
Robert Sesek
Thanks for writing a good test! These are just some stylistic comments. If you're interested ...
6 years, 6 months ago (2014-06-05 14:22:50 UTC) #13
Xuefei Ren
https://codereview.chromium.org/300113009/diff/20001/chrome/browser/ui/cocoa/base_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/base_bubble_controller_unittest.mm (left): https://codereview.chromium.org/300113009/diff/20001/chrome/browser/ui/cocoa/base_bubble_controller_unittest.mm#oldcode197 chrome/browser/ui/cocoa/base_bubble_controller_unittest.mm:197: chrome::testing::NSRunLoopRunAllPending(); On 2014/06/05 14:22:50, rsesek wrote: > What's the ...
6 years, 6 months ago (2014-06-06 03:41:45 UTC) #14
Xuefei Ren
On 2014/06/05 14:22:50, rsesek wrote: > Thanks for writing a good test! These are just ...
6 years, 6 months ago (2014-06-06 03:45:56 UTC) #15
Robert Sesek
On 2014/06/05 14:22:50, rsesek wrote: > If you're interested in working on more bugs, please ...
6 years, 6 months ago (2014-06-06 14:00:34 UTC) #16
Xuefei Ren
On 2014/06/06 14:00:34, rsesek wrote: > On 2014/06/05 14:22:50, rsesek wrote: > > If you're ...
6 years, 6 months ago (2014-06-09 01:40:57 UTC) #17
Robert Sesek
LGTM
6 years, 6 months ago (2014-06-09 15:12:30 UTC) #18
Xuefei Ren
The CQ bit was checked by xrenishere@gmail.com
6 years, 6 months ago (2014-06-10 00:59:06 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xrenishere@gmail.com/300113009/60001
6 years, 6 months ago (2014-06-10 01:00:15 UTC) #20
Xuefei Ren
The CQ bit was unchecked by xrenishere@gmail.com
6 years, 6 months ago (2014-06-10 08:42:42 UTC) #21
Xuefei Ren
The CQ bit was checked by xrenishere@gmail.com
6 years, 6 months ago (2014-06-10 08:42:51 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xrenishere@gmail.com/300113009/60001
6 years, 6 months ago (2014-06-10 08:45:52 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 14:24:42 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 14:31:09 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72684)
6 years, 6 months ago (2014-06-10 14:31:10 UTC) #26
Xuefei Ren
The CQ bit was checked by xrenishere@gmail.com
6 years, 6 months ago (2014-06-11 01:01:07 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xrenishere@gmail.com/300113009/60001
6 years, 6 months ago (2014-06-11 01:02:01 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 01:15:48 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 01:19:57 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72860)
6 years, 6 months ago (2014-06-11 01:19:57 UTC) #31
Xuefei Ren
Hi thakis,sadrul,ben,sky, I'd appreciate that if any of you take a minute to review my ...
6 years, 6 months ago (2014-06-11 01:37:42 UTC) #32
sky
thakis should review those changes On Tue, Jun 10, 2014 at 6:37 PM, <xrenishere@gmail.com> wrote: ...
6 years, 6 months ago (2014-06-11 15:46:48 UTC) #33
Robert Sesek
On 2014/06/11 15:46:48, sky wrote: > thakis should review those changes Scott, could you just ...
6 years, 6 months ago (2014-06-11 21:18:07 UTC) #34
sky
Ok, rsesek is good enough too. LGTM
6 years, 6 months ago (2014-06-12 15:32:47 UTC) #35
Xuefei Ren
The CQ bit was checked by xrenishere@gmail.com
6 years, 6 months ago (2014-06-13 01:02:17 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xrenishere@gmail.com/300113009/60001
6 years, 6 months ago (2014-06-13 01:05:27 UTC) #37
commit-bot: I haz the power
6 years, 6 months ago (2014-06-13 01:13:52 UTC) #38
Message was sent while issue was closed.
Change committed as 276875

Powered by Google App Engine
This is Rietveld 408576698