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

Issue 12330108: mac: Fix sending of mouse moved events after resizing window's lower left corner (Closed)

Created:
7 years, 10 months ago by Nico
Modified:
7 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, sail+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su
Visibility:
Public.

Description

mac: Fix sending of mouse moved events after resizing window's lower left corner NSTrackingInVisibleRect is apparently just broken (see http://openradar.appspot.com/radar?id=2773401 ), so keep the tracking area frame up to date manually. I tried to write a test, but failed to simulate mouse events that impress NSTrackingArea, see patch sets on the review. BUG=176725 TEST=see bug: Open the html file in the first comment, then put the cursor in the inside lower left corner of the window and click-drag-resize the window so that it grows in y direction (x direction doesn't matter). The js-triggered position display should continue updating when moving the cursor to the upper right (further into the window) after the resize operation. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188430 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188735

Patch Set 1 #

Patch Set 2 : test attempt #

Patch Set 3 : huh #

Patch Set 4 : no test :-/ #

Patch Set 5 : origin #

Total comments: 3

Patch Set 6 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -23 lines) Patch
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 3 chunks +0 lines, -4 lines 0 comments Download
M ui/base/cocoa/base_view.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M ui/base/cocoa/base_view.mm View 1 2 3 4 5 2 chunks +22 lines, -17 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Nico
asvitkine: I'm having trouble with writing a test. I basically need a test that simulates ...
7 years, 9 months ago (2013-03-12 23:12:54 UTC) #1
Alexei Svitkine (slow)
Sorry, I don't have any special insight here. Is your test code actually not succeeding ...
7 years, 9 months ago (2013-03-13 15:09:10 UTC) #2
Nico
On 2013/03/13 15:09:10, Alexei Svitkine wrote: > Sorry, I don't have any special insight here. ...
7 years, 9 months ago (2013-03-13 19:59:15 UTC) #3
Alexei Svitkine (slow)
Try NSApplication's -sendEvent: instead of the NSWindow one?
7 years, 9 months ago (2013-03-13 20:14:02 UTC) #4
Nico
That's what I had originally. (Not that switching to the NSWindow version helped.) On Wed, ...
7 years, 9 months ago (2013-03-13 20:15:43 UTC) #5
Nico
Making the view first responder and calling setAcceptsMouseMoved: on the window lets the test pass ...
7 years, 9 months ago (2013-03-13 20:38:56 UTC) #6
Nico
Scrapped the test :-/ Please take a look. (Or 302 to rsesek, if you're not ...
7 years, 9 months ago (2013-03-13 21:37:39 UTC) #7
Alexei Svitkine (slow)
Too bad you couldn't find a way to test this. :\ https://codereview.chromium.org/12330108/diff/12002/ui/base/cocoa/base_view.mm File ui/base/cocoa/base_view.mm (right): ...
7 years, 9 months ago (2013-03-14 00:42:47 UTC) #8
Nico
I found NSView's -updateTrackingAreas and I'm now overriding that.
7 years, 9 months ago (2013-03-14 22:09:39 UTC) #9
Alexei Svitkine (slow)
LGTM On Thu, Mar 14, 2013 at 6:09 PM, <thakis@chromium.org> wrote: > I found NSView's ...
7 years, 9 months ago (2013-03-14 22:38:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/12330108/18001
7 years, 9 months ago (2013-03-14 22:51:09 UTC) #11
commit-bot: I haz the power
Presubmit check for 12330108-18001 failed and returned exit status 1. INFO:root:Found 3 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-14 22:51:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/12330108/18001
7 years, 9 months ago (2013-03-18 14:47:21 UTC) #13
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_view_mac.mm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-18 14:47:23 UTC) #14
Nico
7 years, 9 months ago (2013-03-18 14:51:41 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 manually as r188735 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698