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

Issue 6676094: Fix for "Mouseovers follow the cursor even when there's a find bar in the way" (Closed)

Created:
9 years, 9 months ago by Alexei Svitkine (slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix for "Mouseovers follow the cursor even when there's a find bar in the way" Perform a hit test in the render widget host view to check if the cursor is actually on top of a different view - such as the find bar. If it is and that view has a method -[(BOOL)nonWebContentView] that returns YES, then ignore the event in the render widget host. Change FindBarView to have the aforementioned method that returns YES. Patch by Alexei Svitkine <asvitkine@chromium.org>; BUG=22191 TEST=Leave the content area by mousing over a visible find bar. Mouseovers from the content area should extinguish, and no masked by the find bar should be triggered. R=mark@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=79438

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -5 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 2 chunks +41 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/find_bar/find_bar_view.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/find_bar/find_bar_view.mm View 1 2 3 4 5 6 7 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Alexei Svitkine (slow)
9 years, 9 months ago (2011-03-23 19:44:50 UTC) #1
Mark Mentovai
How does this work with mouseExited and mouseEntered when the cursor enters and leaves the ...
9 years, 9 months ago (2011-03-23 20:01:25 UTC) #2
asvitkine_google
> > In the past, we had bugs where we wouldn’t send a mouseExited event ...
9 years, 9 months ago (2011-03-24 14:18:03 UTC) #3
Mark Mentovai
? UI elements in pages would remain highlighted as though the cursor remained over them ...
9 years, 9 months ago (2011-03-24 14:26:41 UTC) #4
asvitkine_google
So that does sound like it would be a problem with the FindBar as well. ...
9 years, 9 months ago (2011-03-24 14:48:46 UTC) #5
Mark Mentovai
Alexei Svitkine wrote: > So that does sound like it would be a problem with ...
9 years, 9 months ago (2011-03-24 15:02:59 UTC) #6
Alexei Svitkine (slow)
I've updated the patch based on your feedback so that it does keep track of ...
9 years, 9 months ago (2011-03-24 17:49:22 UTC) #7
Mark Mentovai
LGTM http://codereview.chromium.org/6676094/diff/5002/chrome/browser/renderer_host/render_widget_host_view_mac.mm File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/6676094/diff/5002/chrome/browser/renderer_host/render_widget_host_view_mac.mm#newcode1423 chrome/browser/renderer_host/render_widget_host_view_mac.mm:1423: mouseEventWasIgnored_ = NO; Is NO really the right ...
9 years, 9 months ago (2011-03-24 18:44:40 UTC) #8
Alexei Svitkine (slow)
http://codereview.chromium.org/6676094/diff/5002/chrome/browser/renderer_host/render_widget_host_view_mac.mm File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/6676094/diff/5002/chrome/browser/renderer_host/render_widget_host_view_mac.mm#newcode1423 chrome/browser/renderer_host/render_widget_host_view_mac.mm:1423: mouseEventWasIgnored_ = NO; On 2011/03/24 18:44:40, Mark Mentovai wrote: ...
9 years, 9 months ago (2011-03-24 19:04:56 UTC) #9
Mark Mentovai
Let’s give this a try. LGTM.
9 years, 9 months ago (2011-03-24 19:07:33 UTC) #10
Alexei Svitkine (slow)
Failed some tests on the try server. Going to investigate. http://build.chromium.org/p/tryserver.chromium/builders/mac/builds/19044 -Alexei On Thu, Mar ...
9 years, 9 months ago (2011-03-24 20:33:43 UTC) #11
Alexei Svitkine (slow)
Looks like this approach is no-good. An AcceleratedPluginView is the view that is returned by ...
9 years, 9 months ago (2011-03-25 14:57:54 UTC) #12
Mark Mentovai
Alexei Svitkine wrote: > Looks like this approach is no-good. > An AcceleratedPluginView is the ...
9 years, 9 months ago (2011-03-25 16:38:52 UTC) #13
Alexei Svitkine (slow)
Updated the CL based on your suggestions.
9 years, 9 months ago (2011-03-25 17:26:52 UTC) #14
Mark Mentovai
LGTM http://codereview.chromium.org/6676094/diff/8001/chrome/browser/ui/cocoa/find_bar/find_bar_view.mm File chrome/browser/ui/cocoa/find_bar/find_bar_view.mm (right): http://codereview.chromium.org/6676094/diff/8001/chrome/browser/ui/cocoa/find_bar/find_bar_view.mm#newcode133 chrome/browser/ui/cocoa/find_bar/find_bar_view.mm:133: - (BOOL)nonWebContentView { Can you declare this in ...
9 years, 9 months ago (2011-03-25 17:43:52 UTC) #15
Alexei Svitkine (slow)
Changes passed the try server tests. This is my first CL for Chrome, so I ...
9 years, 9 months ago (2011-03-25 19:12:23 UTC) #16
Mark Mentovai
Committed r79438. Nice work.
9 years, 9 months ago (2011-03-25 19:28:28 UTC) #17
Mark Mentovai
9 years, 9 months ago (2011-03-25 19:28:58 UTC) #18
Note that I slightly revised the checkin comment to match Chromium
specifications. I put the BUG= line at the end and added a TEST= line.

Powered by Google App Engine
This is Rietveld 408576698