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

Issue 197283008: Fix panel dragging on Linux Aura (Closed)

Created:
6 years, 9 months ago by pkotwicz
Modified:
6 years, 9 months ago
Reviewers:
sadrul, jianli
CC:
chromium-reviews, tfarina, ben+views_chromium.org
Visibility:
Public.

Description

Temporary hack in order to make panel dragging work on Linux Aura for M-35. Some background: - We use |DesktopWindowTreeHostX11::bounds_| to convert from window coordinates to screen coordinates. - We get mouse events (e.g. MotionNotify) with coordinates wrt to the real window bounds. - DesktopWindowTreeHostX11::SetBounds() synchronously changes |DesktopWindowTreeHostX11::bounds_| but does not synchronously change the real window bounds. As a result, there is a brief period of time where "real window bounds" != "requested window bounds" while a panel is being dragged. During that period of time the computed mouse event position in screen coordinates is wrong. BUG=351730 TEST=Manual, see bug Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259047

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M chrome/browser/ui/views/panels/panel_frame_view.cc View 1 2 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
pkotwicz
Sadrul, PTAL
6 years, 9 months ago (2014-03-13 03:40:50 UTC) #1
pkotwicz
Sadrul, PTAL
6 years, 9 months ago (2014-03-13 03:44:58 UTC) #2
pkotwicz
https://codereview.chromium.org/197283008/diff/10001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/197283008/diff/10001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode1344 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:1344: 0, 0, &translated_x, &translated_y, &unused); The event coordinates matched ...
6 years, 9 months ago (2014-03-13 03:49:45 UTC) #3
sadrul
https://codereview.chromium.org/197283008/diff/10001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/197283008/diff/10001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode1131 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:1131: This doesn't look right. Can you update DesktopWindowTreeHostX11::GetClientAreaBoundsInScreen() instead ...
6 years, 9 months ago (2014-03-13 15:41:30 UTC) #4
pkotwicz
https://codereview.chromium.org/197283008/diff/10001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/197283008/diff/10001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode1131 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:1131: I think I understand what you are asking. You ...
6 years, 9 months ago (2014-03-13 19:47:48 UTC) #5
pkotwicz
Sadrul, can you please take a look. I rewrote the CL so that it is ...
6 years, 9 months ago (2014-03-18 02:48:26 UTC) #6
pkotwicz
6 years, 9 months ago (2014-03-18 02:51:32 UTC) #7
sadrul
This change uses much more of X event than I thought would be necessary. Let's ...
6 years, 9 months ago (2014-03-18 04:25:22 UTC) #8
pkotwicz
I made the changes that you requested. Sadrul, can you please take another look?
6 years, 9 months ago (2014-03-18 17:23:31 UTC) #9
sadrul
lgtm
6 years, 9 months ago (2014-03-18 19:21:39 UTC) #10
sadrul
On 2014/03/18 19:21:39, sadrul wrote: > lgtm Please make sure to update the CL description.
6 years, 9 months ago (2014-03-18 19:21:52 UTC) #11
pkotwicz
I actually think that the CL description is appropriate. sadrul@ can you please suggest improvements ...
6 years, 9 months ago (2014-03-18 19:42:30 UTC) #12
pkotwicz
jianli@ for OWNERS
6 years, 9 months ago (2014-03-18 19:42:54 UTC) #13
sadrul
On 2014/03/18 19:42:30, pkotwicz wrote: > I actually think that the CL description is appropriate. ...
6 years, 9 months ago (2014-03-18 20:49:36 UTC) #14
pkotwicz
jianli@, Ping?
6 years, 9 months ago (2014-03-20 18:41:22 UTC) #15
jianli
lgtm
6 years, 9 months ago (2014-03-21 19:02:47 UTC) #16
pkotwicz
The CQ bit was checked by pkotwicz@chromium.org
6 years, 9 months ago (2014-03-21 19:19:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/197283008/110001
6 years, 9 months ago (2014-03-21 19:19:42 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-21 19:51:26 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-21 19:51:27 UTC) #20
pkotwicz
The CQ bit was checked by pkotwicz@chromium.org
6 years, 9 months ago (2014-03-24 19:09:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/197283008/110001
6 years, 9 months ago (2014-03-24 19:10:04 UTC) #22
commit-bot: I haz the power
6 years, 9 months ago (2014-03-24 22:48:19 UTC) #23
Message was sent while issue was closed.
Change committed as 259047

Powered by Google App Engine
This is Rietveld 408576698