Update window region after widget resizes not changing HWND size
commit0d98fb2da82a0abdd3a82821d48426aa5d7e9cd8
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 28 May 2014 00:04:23 +0000 (28 00:04 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 28 May 2014 00:04:23 +0000 (28 00:04 +0000)
tree4ddb2d334488bcb9a8432e2d74a52d2d62192552
parent3fc652e63f5f8cc595b6188f39a24a96d72b91ba
Update window region after widget resizes not changing HWND size

When width or height of a widget is changed to a value less than 64
pixels, it is rounded up to 64 pixels (see crbug.com/286609). This might
cause the actual HWND size remain the same while changing size of the
widget. In this case, we need to force message handler to update window
region since we are not receiving resize messages form the OS.

BUG=376329

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273081 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
ui/views/win/hwnd_message_handler.cc
ui/views/win/hwnd_message_handler.h