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

Issue 10827022: Fix coordinates in tab detach &drag code and multi window resizer. (Closed)

Created:
8 years, 5 months ago by oshima
Modified:
8 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, sadrul, dcheng, ben+watch_chromium.org
Visibility:
Public.

Description

Fix coordinates in tab detach/drag and multi window resizer. ToplevelWindowEventFilter: * Use location in root window for drag_location DocInfo::GetLocalProcessWindowAtPoint * Use ScreenPositionClient to convert a point in screen to window * Use correct root window at the position. MultiWindowResizer * Use ScreenPositionClient to convert a point in screen to window. * show_bounds_ should be screen coordinates. I also renamed {screen|parent}_{location|position| to {location|position}_in_{screen|parent} to be more explicit and consistent with the rest of the code. I'll work on the test separately as we discussed offline. BUG=138997, 138868 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148478

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : reverted bad test #

Total comments: 4

Patch Set 5 : update header #

Patch Set 6 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -171 lines) Patch
M ash/screen_ash.h View 1 chunk +4 lines, -2 lines 0 comments Download
M ash/wm/toplevel_window_event_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/toplevel_window_event_filter.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M ash/wm/workspace/multi_window_resize_controller.h View 1 2 3 chunks +13 lines, -12 lines 0 comments Download
M ash/wm/workspace/multi_window_resize_controller.cc View 1 2 11 chunks +40 lines, -34 lines 0 comments Download
M ash/wm/workspace/workspace_event_filter.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_event_filter.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/tabs/dock_info_ash.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.h View 9 chunks +24 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 3 4 5 30 chunks +82 lines, -79 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
sky
LGTM http://codereview.chromium.org/10827022/diff/4002/ash/wm/workspace/workspace_event_filter.cc File ash/wm/workspace/workspace_event_filter.cc (right): http://codereview.chromium.org/10827022/diff/4002/ash/wm/workspace/workspace_event_filter.cc#newcode120 ash/wm/workspace/workspace_event_filter.cc:120: const gfx::Point& point_in_parent, rename argument in header to ...
8 years, 5 months ago (2012-07-25 23:51:41 UTC) #1
oshima
http://codereview.chromium.org/10827022/diff/4002/ash/wm/workspace/workspace_event_filter.cc File ash/wm/workspace/workspace_event_filter.cc (right): http://codereview.chromium.org/10827022/diff/4002/ash/wm/workspace/workspace_event_filter.cc#newcode120 ash/wm/workspace/workspace_event_filter.cc:120: const gfx::Point& point_in_parent, On 2012/07/25 23:51:41, sky wrote: > ...
8 years, 5 months ago (2012-07-25 23:55:14 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/10827022/12001
8 years, 5 months ago (2012-07-26 00:06:12 UTC) #3
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/tabs/tab_drag_controller.cc: While running patch -p1 --forward --force; patching file chrome/browser/ui/views/tabs/tab_drag_controller.cc ...
8 years, 5 months ago (2012-07-26 00:06:17 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/10827022/10003
8 years, 5 months ago (2012-07-26 00:16:25 UTC) #5
commit-bot: I haz the power
8 years, 5 months ago (2012-07-26 02:17:26 UTC) #6
Change committed as 148478

Powered by Google App Engine
This is Rietveld 408576698