Update panel layout immediately after the user has finished resizing a panel.
commit8eaba2dd2bd229a62645296b2c679884572cc887
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 17:11:01 +0000 (12 17:11 +0000)
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 17:11:01 +0000 (12 17:11 +0000)
treed2f9f805db17fc7582f539d45ee29d736b1315cf
parent4484443a102afb523cf9601e1acf8417d5e1ecd5
Update panel layout immediately after the user has finished resizing a panel.

Update panel layout immediately after the user has finished resizing a panel.
Unfortunately, it is not possible to detect when a resize performed by the
window manager has ended. This CL does the resizing of panels entirely in
Chrome. This is slow and ugly but it is what we used to do in the GTK port.
(panel_drag_gtk.cc)

BUG=371616
TEST=Manual, see bug
R=erg, jianli
TBR=sadrul (For changes in ui/base/x/x11_util.* which have been taken verbatim from https://codereview.chromium.org/264713007/)

Review URL: https://codereview.chromium.org/320713004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276719 0039d316-1c4b-4281-b951-d872f2087c98
17 files changed:
chrome/browser/ui/panels/panel_browsertest.cc
chrome/browser/ui/panels/panel_constants.h
chrome/browser/ui/panels/panel_manager.cc
chrome/browser/ui/panels/panel_manager.h
chrome/browser/ui/panels/panel_resize_browsertest.cc
chrome/browser/ui/panels/panel_resize_controller.cc
chrome/browser/ui/panels/panel_resize_controller.h
chrome/browser/ui/views/panels/panel_view.cc
chrome/browser/ui/views/panels/x11_panel_resizer.cc [new file with mode: 0644]
chrome/browser/ui/views/panels/x11_panel_resizer.h [new file with mode: 0644]
chrome/chrome_browser_ui.gypi
ui/base/x/x11_util.cc
ui/base/x/x11_util.h
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
ui/views/widget/desktop_aura/x11_window_event_filter.cc
ui/views/widget/desktop_aura/x11_window_event_filter.h