summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/constrained_window_impl.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 00:33:34 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-16 00:33:34 +0000
commitfb4797181c6d5d1c724107f6c5ec3d8b95bdeb9a (patch)
treef4705d26c5b278d08471e9010a11c69aa6e6e61e /chrome/browser/views/constrained_window_impl.cc
parent4e6b02f23537a91bd1990900ff0ffb5001d5b74d (diff)
downloadchromium_src-fb4797181c6d5d1c724107f6c5ec3d8b95bdeb9a.zip
chromium_src-fb4797181c6d5d1c724107f6c5ec3d8b95bdeb9a.tar.gz
chromium_src-fb4797181c6d5d1c724107f6c5ec3d8b95bdeb9a.tar.bz2
Rip out custom WM_GETMINMAXINFO handling entirely. I think this is a relic of the old Halo Frame. Trying to rip it out halfway results in problems, like the taskbar not un-auto-hiding when Chromium is maximized.
This should result in correct handling of maximized windows on multiple monitors with different resolutions, taskbar positions, and auto-hide settings (since we're just using the native Windows code to do everything). BUG=943445 Review URL: http://codereview.chromium.org/14446 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7021 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/constrained_window_impl.cc')
-rw-r--r--chrome/browser/views/constrained_window_impl.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/views/constrained_window_impl.cc b/chrome/browser/views/constrained_window_impl.cc
index 43e6b3a9..ec0b9d2 100644
--- a/chrome/browser/views/constrained_window_impl.cc
+++ b/chrome/browser/views/constrained_window_impl.cc
@@ -712,18 +712,6 @@ void ConstrainedWindowImpl::OnFinalMessage(HWND window) {
WidgetWin::OnFinalMessage(window);
}
-void ConstrainedWindowImpl::OnGetMinMaxInfo(LPMINMAXINFO mm_info) {
- // Override this function to set the maximize area as the client area of the
- // containing window.
- CRect parent_rect;
- ::GetClientRect(GetParent(), &parent_rect);
-
- mm_info->ptMaxSize.x = parent_rect.Width();
- mm_info->ptMaxSize.y = parent_rect.Height();
- mm_info->ptMaxPosition.x = parent_rect.left;
- mm_info->ptMaxPosition.y = parent_rect.top;
-}
-
LRESULT ConstrainedWindowImpl::OnMouseActivate(HWND window,
UINT hittest_code,
UINT message) {