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

Issue 300163002: Update window region after widget resizes not changing HWND size (Closed)

Created:
6 years, 7 months ago by mohsen
Modified:
6 years, 6 months ago
Reviewers:
sky, jbauman
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273081

Patch Set 1 #

Total comments: 2

Patch Set 2 : Pass size change status as an argument to SetBounds() #

Total comments: 2

Patch Set 3 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -8 lines) Patch
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 1 chunk +1 line, -6 lines 0 comments Download
M ui/views/win/hwnd_message_handler.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M ui/views/win/hwnd_message_handler.cc View 1 2 1 chunk +12 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
mohsen
jbauman@: Can you take a look please...
6 years, 7 months ago (2014-05-26 19:00:35 UTC) #1
jbauman
lgtm
6 years, 7 months ago (2014-05-27 16:44:14 UTC) #2
mohsen
sky@: can you please take a look...
6 years, 7 months ago (2014-05-27 17:07:17 UTC) #3
sky
https://codereview.chromium.org/300163002/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/300163002/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc#newcode489 ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc:489: message_handler_->SetBounds(new_expanded); You want the logic to be that even ...
6 years, 7 months ago (2014-05-27 17:33:05 UTC) #4
mohsen
https://codereview.chromium.org/300163002/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/300163002/diff/1/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc#newcode489 ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc:489: message_handler_->SetBounds(new_expanded); On 2014/05/27 17:33:06, sky wrote: > You want ...
6 years, 7 months ago (2014-05-27 18:24:29 UTC) #5
sky
LGTM https://codereview.chromium.org/300163002/diff/20001/ui/views/win/hwnd_message_handler.h File ui/views/win/hwnd_message_handler.h (right): https://codereview.chromium.org/300163002/diff/20001/ui/views/win/hwnd_message_handler.h#newcode133 ui/views/win/hwnd_message_handler.h:133: void SetBounds(const gfx::Rect& bounds_in_pixels, bool widget_size_changed); Document what ...
6 years, 7 months ago (2014-05-27 19:27:38 UTC) #6
mohsen
https://codereview.chromium.org/300163002/diff/20001/ui/views/win/hwnd_message_handler.h File ui/views/win/hwnd_message_handler.h (right): https://codereview.chromium.org/300163002/diff/20001/ui/views/win/hwnd_message_handler.h#newcode133 ui/views/win/hwnd_message_handler.h:133: void SetBounds(const gfx::Rect& bounds_in_pixels, bool widget_size_changed); On 2014/05/27 19:27:39, ...
6 years, 6 months ago (2014-05-27 20:16:17 UTC) #7
mohsen
The CQ bit was checked by mohsen@chromium.org
6 years, 6 months ago (2014-05-27 22:50:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/300163002/60001
6 years, 6 months ago (2014-05-27 22:51:19 UTC) #9
commit-bot: I haz the power
6 years, 6 months ago (2014-05-28 00:04:26 UTC) #10
Message was sent while issue was closed.
Change committed as 273081

Powered by Google App Engine
This is Rietveld 408576698