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

Issue 10545129: aura:Delay call to DispatchHeldMouseMove from RootWindow::ReleaseMouseMoves (Closed)

Created:
8 years, 6 months ago by piman
Modified:
8 years, 6 months ago
Reviewers:
sky, jonathan.backer
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

aura:Delay call to DispatchHeldMouseMove from RootWindow::ReleaseMouseMoves ReleaseMouseMoves can be called from a deep stack, possibly while already dispatching an event. Most of these code paths don't expect another event to be dispatched from there, so post a task to delay it. Ordering is still ensured from the existing mechanisms. BUG=131875 TEST=manual (see bug), also RootWindowTest.HoldMouseMove Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141775

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 8

Patch Set 3 : fix nits, add tests #

Patch Set 4 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -6 lines) Patch
M ui/aura/root_window.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 chunks +23 lines, -6 lines 0 comments Download
M ui/aura/root_window_unittest.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
piman
backer: please review sky: OWNERS
8 years, 6 months ago (2012-06-12 03:18:15 UTC) #1
sky
https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc#newcode263 ui/aura/root_window.cc:263: return DispatchMouseEventImpl(event); Should this reset held_mouse_move_ now? I'm thinking ...
8 years, 6 months ago (2012-06-12 03:57:47 UTC) #2
piman
(I'll fix the nits tomorrow, but just one comment on one of the points you ...
8 years, 6 months ago (2012-06-12 04:42:05 UTC) #3
sky
On 2012/06/12 04:42:05, piman wrote: > (I'll fix the nits tomorrow, but just one comment ...
8 years, 6 months ago (2012-06-12 14:35:32 UTC) #4
jonathan.backer
https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc#newcode490 ui/aura/root_window.cc:490: held_mouse_event_factory_.InvalidateWeakPtrs(); Why are we invalidating? It happens all the ...
8 years, 6 months ago (2012-06-12 17:32:38 UTC) #5
piman
On Tue, Jun 12, 2012 at 10:32 AM, <backer@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/10545129/diff/** > 6001/ui/aura/root_window.cc<https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc> ...
8 years, 6 months ago (2012-06-12 19:33:47 UTC) #6
jonathan.backer
6001/ui/aura/root_window.cc#**newcode490<https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc#newcode490> > > ui/aura/root_window.cc:490: > > held_mouse_event_factory_.**InvalidateWeakPtrs(); > > Why are we invalidating? It happens ...
8 years, 6 months ago (2012-06-12 19:48:33 UTC) #7
piman
ptal https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc File ui/aura/root_window.cc (right): https://chromiumcodereview.appspot.com/10545129/diff/6001/ui/aura/root_window.cc#newcode263 ui/aura/root_window.cc:263: return DispatchMouseEventImpl(event); On 2012/06/12 03:57:47, sky wrote: > ...
8 years, 6 months ago (2012-06-12 19:49:49 UTC) #8
sky
LGTM
8 years, 6 months ago (2012-06-12 21:25:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/10545129/10003
8 years, 6 months ago (2012-06-12 21:47:57 UTC) #10
commit-bot: I haz the power
8 years, 6 months ago (2012-06-12 23:01:25 UTC) #11
Change committed as 141775

Powered by Google App Engine
This is Rietveld 408576698