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

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed)

Created:
6 years, 2 months ago by llandwerlin-old
Modified:
6 years ago
CC:
chromium-reviews, kalyank, ben+aura_chromium.org, sadrul, ben+ash_chromium.org, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ash: ozone: apply transformation to events outside the root window When dragging windows from one screen to another, events need to be captured and send to the window where the drag started. As a result we also need to translate event back into the original window's location. BUG=423383 TEST=none Committed: https://crrev.com/164046d3753535889d3ba1f0060a0280a94bc1c7 Cr-Commit-Position: refs/heads/master@{#306623}

Patch Set 1 #

Patch Set 2 : Remove whitespace in toplevel_window_event_handler.cc #

Patch Set 3 : Use SetCapture/ReleaseCapture on aura Window #

Patch Set 4 : Remove grab_flags_ from DriWindow #

Patch Set 5 : coding style #

Total comments: 3

Patch Set 6 : Add root location on DriCursor #

Patch Set 7 : Rebase on ToT #

Total comments: 1

Patch Set 8 : Fix event unit test #

Patch Set 9 : Rebase on ToT #

Total comments: 8

Patch Set 10 : Update after second round of review #

Patch Set 11 : Change GetBounds() visibility from public to protected #

Total comments: 15

Patch Set 12 : Remove DCHECKs from DriWindowManager #

Total comments: 7

Patch Set 13 : Only capture specific events during the grab #

Patch Set 14 : Capture everything #

Patch Set 15 : Fix tablet_event_converter_evdev_unittest #

Total comments: 1

Patch Set 16 : Remove explicit gfx::Rect to gfx::RectF conversion #

Total comments: 8

Patch Set 17 : Drop Ozone platform changes already on master #

Patch Set 18 : Drop Ozone platform changes already on master #

Total comments: 1

Patch Set 19 : Change visibility of TranslateLocatedEvent() #

Total comments: 2

Patch Set 20 : Flatten TranslateLocatedEvent() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -27 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M ash/host/ash_window_tree_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +8 lines, -0 lines 0 comments Download
A ash/host/ash_window_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +39 lines, -0 lines 0 comments Download
M ash/host/ash_window_tree_host_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +7 lines, -0 lines 0 comments Download
M ash/host/ash_window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +1 line, -22 lines 0 comments Download
M ui/aura/window_tree_host_ozone.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -1 line 0 comments Download
M ui/aura/window_tree_host_ozone.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 53 (6 generated)
llandwerlin-old
darin@chromium.org: Please review changes in AshWindowTreeHostOzone dnicoara@chromium.org: Please review changes in DriWindow/DriWindowManager spang@chromium.org: Please review ...
6 years, 2 months ago (2014-10-14 15:51:04 UTC) #2
spang
On 2014/10/14 15:51:04, llandwerlin wrote: > mailto:darin@chromium.org: Please review changes in AshWindowTreeHostOzone > > mailto:dnicoara@chromium.org: ...
6 years, 2 months ago (2014-10-14 17:31:01 UTC) #3
llandwerlin-old
On 2014/10/14 17:31:01, spang wrote: > On 2014/10/14 15:51:04, llandwerlin wrote: > > mailto:darin@chromium.org: Please ...
6 years, 2 months ago (2014-10-15 09:14:46 UTC) #4
llandwerlin-old
Thanks for pointing that out. Removed the bit of logic from DriWindow and now using ...
6 years, 2 months ago (2014-10-15 11:10:24 UTC) #5
spang
On 2014/10/15 11:10:24, llandwerlin wrote: > Thanks for pointing that out. > Removed the bit ...
6 years, 2 months ago (2014-10-15 12:32:21 UTC) #6
llandwerlin-old
On 2014/10/15 12:32:21, spang (OOO Oct 15 - Oct 17) wrote: > On 2014/10/15 11:10:24, ...
6 years, 2 months ago (2014-10-16 10:45:10 UTC) #7
spang
sorry for the delay https://codereview.chromium.org/657603002/diff/80001/ui/aura/window_tree_host_ozone.cc File ui/aura/window_tree_host_ozone.cc (right): https://codereview.chromium.org/657603002/diff/80001/ui/aura/window_tree_host_ozone.cc#newcode35 ui/aura/window_tree_host_ozone.cc:35: if (event->IsMouseEvent()) Can you move ...
6 years, 1 month ago (2014-11-04 23:27:23 UTC) #8
llandwerlin-old
Added the root location on the dri cursor as you suggested and realized I could ...
6 years, 1 month ago (2014-11-07 19:53:52 UTC) #9
spang
lgtm
6 years, 1 month ago (2014-11-07 20:41:09 UTC) #10
llandwerlin-old
Sky, Could you review the changes in ash? Thank you.
6 years, 1 month ago (2014-11-07 22:38:06 UTC) #12
spang
+sadrul for ui/events + ui/aura +derat for ash https://codereview.chromium.org/657603002/diff/120001/ui/aura/window_tree_host_ozone.h File ui/aura/window_tree_host_ozone.h (right): https://codereview.chromium.org/657603002/diff/120001/ui/aura/window_tree_host_ozone.h#newcode43 ui/aura/window_tree_host_ozone.h:43: // ...
6 years, 1 month ago (2014-11-07 22:38:45 UTC) #14
llandwerlin-old
On 2014/11/07 22:38:45, spang wrote: > +sadrul for ui/events + ui/aura > +derat for ash ...
6 years, 1 month ago (2014-11-07 22:40:53 UTC) #16
llandwerlin-old
Sadrul, could you review the changes in ui/events & ui/aura? Thank you.
6 years, 1 month ago (2014-11-07 22:41:42 UTC) #18
Daniel Erat
i'm fine with the ash/ changes as an owner, but sadrul should review that directory ...
6 years, 1 month ago (2014-11-08 00:07:02 UTC) #19
spang
https://codereview.chromium.org/657603002/diff/160001/ui/ozone/platform/dri/dri_cursor.cc File ui/ozone/platform/dri/dri_cursor.cc (right): https://codereview.chromium.org/657603002/diff/160001/ui/ozone/platform/dri/dri_cursor.cc#newcode73 ui/ozone/platform/dri/dri_cursor.cc:73: cursor_root_location_.Offset(bounds.origin().x(), bounds.origin().y()); I noticed a bug. This is using ...
6 years, 1 month ago (2014-11-10 20:30:47 UTC) #20
dnicoara
https://codereview.chromium.org/657603002/diff/160001/ui/aura/window_tree_host_ozone.h File ui/aura/window_tree_host_ozone.h (right): https://codereview.chromium.org/657603002/diff/160001/ui/aura/window_tree_host_ozone.h#newcode27 ui/aura/window_tree_host_ozone.h:27: // WindowTreeHost: Do all of these need to be ...
6 years, 1 month ago (2014-11-10 21:44:07 UTC) #21
llandwerlin-old
https://codereview.chromium.org/657603002/diff/160001/ui/aura/window_tree_host_ozone.h File ui/aura/window_tree_host_ozone.h (right): https://codereview.chromium.org/657603002/diff/160001/ui/aura/window_tree_host_ozone.h#newcode27 ui/aura/window_tree_host_ozone.h:27: // WindowTreeHost: On 2014/11/10 21:44:06, dnicoara wrote: > Do ...
6 years, 1 month ago (2014-11-11 11:03:53 UTC) #22
llandwerlin-old
PTAL, Thanks.
6 years, 1 month ago (2014-11-11 11:25:13 UTC) #23
sadrul
https://codereview.chromium.org/657603002/diff/200001/ash/host/ash_window_tree_host_ozone.cc File ash/host/ash_window_tree_host_ozone.cc (right): https://codereview.chromium.org/657603002/diff/200001/ash/host/ash_window_tree_host_ozone.cc#newcode40 ash/host/ash_window_tree_host_ozone.cc:40: void TranslateMouseEvent(ui::LocatedEvent* event); non-override before overrides https://codereview.chromium.org/657603002/diff/200001/ui/aura/window_tree_host_ozone.h File ui/aura/window_tree_host_ozone.h ...
6 years, 1 month ago (2014-11-11 14:41:14 UTC) #24
spang
On 2014/11/10 21:44:07, dnicoara wrote: > https://codereview.chromium.org/657603002/diff/160001/ui/aura/window_tree_host_ozone.h > File ui/aura/window_tree_host_ozone.h (right): > > https://codereview.chromium.org/657603002/diff/160001/ui/aura/window_tree_host_ozone.h#newcode27 > ...
6 years, 1 month ago (2014-11-11 16:59:49 UTC) #25
llandwerlin-old
On 2014/11/11 16:59:49, spang wrote: > On 2014/11/10 21:44:07, dnicoara wrote: > > > https://codereview.chromium.org/657603002/diff/160001/ui/aura/window_tree_host_ozone.h ...
6 years, 1 month ago (2014-11-11 17:28:56 UTC) #26
spang
On 2014/11/11 17:28:56, llandwerlin wrote: > On 2014/11/11 16:59:49, spang wrote: > > On 2014/11/10 ...
6 years, 1 month ago (2014-11-11 17:45:23 UTC) #27
spang
On 2014/11/11 17:45:23, spang wrote: > On 2014/11/11 17:28:56, llandwerlin wrote: > > On 2014/11/11 ...
6 years, 1 month ago (2014-11-11 17:47:25 UTC) #28
llandwerlin-old
https://codereview.chromium.org/657603002/diff/200001/ash/host/ash_window_tree_host_ozone.cc File ash/host/ash_window_tree_host_ozone.cc (right): https://codereview.chromium.org/657603002/diff/200001/ash/host/ash_window_tree_host_ozone.cc#newcode40 ash/host/ash_window_tree_host_ozone.cc:40: void TranslateMouseEvent(ui::LocatedEvent* event); On 2014/11/11 14:41:14, sadrul wrote: > ...
6 years, 1 month ago (2014-11-11 18:29:18 UTC) #29
llandwerlin-old
PTAL, Thanks.
6 years, 1 month ago (2014-11-11 18:29:35 UTC) #30
spang
https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc File ui/ozone/platform/dri/dri_window.cc (right): https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc#newcode114 ui/ozone/platform/dri/dri_window.cc:114: return grabber == widget_; Let's talk about this more. ...
6 years, 1 month ago (2014-11-11 19:00:24 UTC) #31
llandwerlin-old
On 2014/11/11 19:00:24, spang wrote: > https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc > File ui/ozone/platform/dri/dri_window.cc (right): > > https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc#newcode114 > ...
6 years, 1 month ago (2014-11-12 14:40:37 UTC) #32
llandwerlin-old
https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc File ui/ozone/platform/dri/dri_window.cc (right): https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc#newcode114 ui/ozone/platform/dri/dri_window.cc:114: return grabber == widget_; On 2014/11/11 19:00:24, spang wrote: ...
6 years, 1 month ago (2014-11-12 15:47:24 UTC) #33
llandwerlin-old
PTAL, Thanks.
6 years, 1 month ago (2014-11-12 15:55:49 UTC) #34
spang
On 2014/11/12 14:40:37, llandwerlin wrote: > On 2014/11/11 19:00:24, spang wrote: > > > https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc ...
6 years, 1 month ago (2014-11-19 18:13:11 UTC) #35
spang
https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc File ui/ozone/platform/dri/dri_window.cc (right): https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc#newcode127 ui/ozone/platform/dri/dri_window.cc:127: if (event->IsLocatedEvent()) { On 2014/11/12 15:47:24, llandwerlin wrote: > ...
6 years, 1 month ago (2014-11-19 18:32:31 UTC) #36
sadrul
https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc File ui/ozone/platform/dri/dri_window.cc (right): https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc#newcode114 ui/ozone/platform/dri/dri_window.cc:114: return grabber == widget_; On 2014/11/11 19:00:24, spang wrote: ...
6 years, 1 month ago (2014-11-19 21:07:10 UTC) #37
spang
On 2014/11/19 21:07:10, sadrul wrote: > https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc > File ui/ozone/platform/dri/dri_window.cc (right): > > https://codereview.chromium.org/657603002/diff/220001/ui/ozone/platform/dri/dri_window.cc#newcode114 > ...
6 years, 1 month ago (2014-11-19 22:13:32 UTC) #38
llandwerlin-old
As requested, let's capture everything. PTAL, Thanks.
6 years, 1 month ago (2014-11-21 12:16:28 UTC) #39
spang
lgtm https://codereview.chromium.org/657603002/diff/280001/ui/ozone/platform/dri/dri_window.cc File ui/ozone/platform/dri/dri_window.cc (right): https://codereview.chromium.org/657603002/diff/280001/ui/ozone/platform/dri/dri_window.cc#newcode179 ui/ozone/platform/dri/dri_window.cc:179: gfx::PointF(bounds_.origin().x(), bounds_.origin().y())); can't you just pass bounds_.origin()?
6 years, 1 month ago (2014-11-21 19:20:26 UTC) #40
llandwerlin-old
On 2014/11/21 19:20:26, spang wrote: > lgtm > > https://codereview.chromium.org/657603002/diff/280001/ui/ozone/platform/dri/dri_window.cc > File ui/ozone/platform/dri/dri_window.cc (right): > ...
6 years, 1 month ago (2014-11-21 19:22:29 UTC) #41
dnicoara
On 2014/11/21 19:22:29, llandwerlin wrote: > On 2014/11/21 19:20:26, spang wrote: > > lgtm > ...
6 years, 1 month ago (2014-11-21 19:38:32 UTC) #42
llandwerlin-old
On 2014/11/21 19:38:32, dnicoara wrote: > On 2014/11/21 19:22:29, llandwerlin wrote: > > On 2014/11/21 ...
6 years ago (2014-11-24 13:03:54 UTC) #43
sadrul
https://codereview.chromium.org/657603002/diff/300001/ash/host/ash_window_tree_host_ozone.cc File ash/host/ash_window_tree_host_ozone.cc (right): https://codereview.chromium.org/657603002/diff/300001/ash/host/ash_window_tree_host_ozone.cc#newcode72 ash/host/ash_window_tree_host_ozone.cc:72: } You should refactor this so you are not ...
6 years ago (2014-11-24 22:27:04 UTC) #44
llandwerlin-old
PTAL Following spang's refactoring on master I can drop most of the stuff in ui/ ...
6 years ago (2014-11-28 16:28:23 UTC) #45
sadrul
lgtm https://codereview.chromium.org/657603002/diff/340001/ash/host/ash_window_tree_host.h File ash/host/ash_window_tree_host.h (right): https://codereview.chromium.org/657603002/diff/340001/ash/host/ash_window_tree_host.h#newcode66 ash/host/ash_window_tree_host.h:66: virtual void TranslateLocatedEvent(ui::LocatedEvent* event); This should be non-virtual ...
6 years ago (2014-12-01 18:25:54 UTC) #46
llandwerlin-old
Daniel, could you give your lgtm if you're still okay with the change? Thanks.
6 years ago (2014-12-03 10:29:08 UTC) #47
Daniel Erat
lgtm for ash with a suggestion https://codereview.chromium.org/657603002/diff/360001/ash/host/ash_window_tree_host.cc File ash/host/ash_window_tree_host.cc (right): https://codereview.chromium.org/657603002/diff/360001/ash/host/ash_window_tree_host.cc#newcode15 ash/host/ash_window_tree_host.cc:15: if (!event->IsTouchEvent()) { ...
6 years ago (2014-12-03 14:44:17 UTC) #48
llandwerlin-old
https://codereview.chromium.org/657603002/diff/360001/ash/host/ash_window_tree_host.cc File ash/host/ash_window_tree_host.cc (right): https://codereview.chromium.org/657603002/diff/360001/ash/host/ash_window_tree_host.cc#newcode15 ash/host/ash_window_tree_host.cc:15: if (!event->IsTouchEvent()) { On 2014/12/03 14:44:17, Daniel Erat wrote: ...
6 years ago (2014-12-03 15:57:11 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657603002/380001
6 years ago (2014-12-03 15:58:13 UTC) #51
commit-bot: I haz the power
Committed patchset #20 (id:380001)
6 years ago (2014-12-03 16:47:08 UTC) #52
commit-bot: I haz the power
6 years ago (2014-12-03 16:47:55 UTC) #53
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/164046d3753535889d3ba1f0060a0280a94bc1c7
Cr-Commit-Position: refs/heads/master@{#306623}

Powered by Google App Engine
This is Rietveld 408576698