diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 17:24:49 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 17:24:49 +0000 |
commit | 5f46418438b0cd2570318fdcf03bb2e1e7855d9e (patch) | |
tree | eebcfc8997a36c08fbc72a11d8d5bddb97578aea /chrome/views/widget | |
parent | fc6536ff4a94bccc3df5c821922bdb4603283fd1 (diff) | |
download | chromium_src-5f46418438b0cd2570318fdcf03bb2e1e7855d9e.zip chromium_src-5f46418438b0cd2570318fdcf03bb2e1e7855d9e.tar.gz chromium_src-5f46418438b0cd2570318fdcf03bb2e1e7855d9e.tar.bz2 |
Don't allow the browser window to be resized so small that layout starts breaking horribly. When it _is_ small, draw the frame correctly.
This is an incomplete fix; only non-Aero main/popup/app windows are handled so far, but this was becoming hairy enough I wanted to checkpoint it.
BUG=9885
Review URL: http://codereview.chromium.org/100005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/widget')
-rw-r--r-- | chrome/views/widget/widget_win.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/widget/widget_win.h b/chrome/views/widget/widget_win.h index ede4252..110a0b4 100644 --- a/chrome/views/widget/widget_win.h +++ b/chrome/views/widget/widget_win.h @@ -178,6 +178,7 @@ class WidgetWin : public Widget, MSG_WM_ENDSESSION(OnEndSession) MSG_WM_ENTERSIZEMOVE(OnEnterSizeMove) MSG_WM_EXITMENULOOP(OnExitMenuLoop) + MSG_WM_GETMINMAXINFO(OnGetMinMaxInfo) MSG_WM_HSCROLL(OnHScroll) MSG_WM_INITMENU(OnInitMenu) MSG_WM_INITMENUPOPUP(OnInitMenuPopup) @@ -376,6 +377,9 @@ class WidgetWin : public Widget, } virtual LRESULT OnEraseBkgnd(HDC dc); virtual LRESULT OnGetObject(UINT uMsg, WPARAM w_param, LPARAM l_param); + virtual void OnGetMinMaxInfo(MINMAXINFO* minmax_info) { + SetMsgHandled(FALSE); + } virtual void OnHScroll(int scroll_type, short position, HWND scrollbar) { SetMsgHandled(FALSE); } |