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

Issue 1571953003: Changes PlatformWindowMus to ack event callback before dispatching (Closed)

Created:
4 years, 11 months ago by sky
Modified:
4 years, 11 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Changes PlatformWindowMus to ack event callback before dispatching To do otherwise causes problems with nested message loops. BUG=none TEST=none R=sadrul@chromium.org Committed: https://crrev.com/b3cb0f1a93ae0ce4ec65d561697802d2bf9f171e Cr-Commit-Position: refs/heads/master@{#368606}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M ui/views/mus/platform_window_mus.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
sky
4 years, 11 months ago (2016-01-09 00:07:09 UTC) #1
sadrul
lgtm (maybe we can convert all menus to be async and won't need this anymore)
4 years, 11 months ago (2016-01-09 00:20:26 UTC) #2
sky
On 2016/01/09 00:20:26, sadrul wrote: > lgtm (maybe we can convert all menus to be ...
4 years, 11 months ago (2016-01-11 16:05:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1571953003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1571953003/1
4 years, 11 months ago (2016-01-11 16:06:15 UTC) #5
Fady Samuel
On 2016/01/11 16:05:58, sky wrote: > On 2016/01/09 00:20:26, sadrul wrote: > > lgtm (maybe ...
4 years, 11 months ago (2016-01-11 16:07:42 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-11 17:07:23 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/b3cb0f1a93ae0ce4ec65d561697802d2bf9f171e Cr-Commit-Position: refs/heads/master@{#368606}
4 years, 11 months ago (2016-01-11 17:08:13 UTC) #9
sky
On 2016/01/11 16:07:42, Fady Samuel wrote: > On 2016/01/11 16:05:58, sky wrote: > > On ...
4 years, 11 months ago (2016-01-11 17:10:06 UTC) #10
sadrul
On 2016/01/11 17:10:06, sky wrote: > On 2016/01/11 16:07:42, Fady Samuel wrote: > > On ...
4 years, 11 months ago (2016-01-11 17:13:52 UTC) #11
sky
On 2016/01/11 17:13:52, sadrul wrote: > On 2016/01/11 17:10:06, sky wrote: > > On 2016/01/11 ...
4 years, 11 months ago (2016-01-11 17:19:30 UTC) #12
sadrul
4 years, 11 months ago (2016-01-11 17:37:51 UTC) #13
Message was sent while issue was closed.
On 2016/01/11 17:19:30, sky wrote:
> On 2016/01/11 17:13:52, sadrul wrote:
> > On 2016/01/11 17:10:06, sky wrote:
> > > On 2016/01/11 16:07:42, Fady Samuel wrote:
> > > > On 2016/01/11 16:05:58, sky wrote:
> > > > > On 2016/01/09 00:20:26, sadrul wrote:
> > > > > > lgtm (maybe we can convert all menus to be async and won't need this
> > > > anymore)
> > > > > 
> > > > > Drag and drop is sync, right?
> > > > > 
> > > > > It seems like we need a better solution than an explicit ack. Maybe
mojo
> > > > itself
> > > > > needs a way to better communicate responsiveness rather than relying
on
> > the
> > > > app,
> > > > > which is error prone.
> > > > 
> > > > +1000000 it would be AMAZING if mojo IPC had a way of communicating
> > > > responsiveness. There are web platform use cases for this as well.
> > > 
> > > I filed 576305.
> > 
> > Note that we still need the explicit ack for the event in the renderer
process
> > as long as the compositor thread is the one that receives the event from
mus.
> 
> Windows gets along fine without an ack like we've added.

The difference here is that for scrolling, mus would need to retarget the
scroll-events to the parent if the target is not ack'ing them quickly enough. (I
do not think Windows does this, but maybe it actually has support for this sort
of bubbling?)

Powered by Google App Engine
This is Rietveld 408576698