diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-17 00:24:43 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-17 00:24:43 +0000 |
commit | 4eaa87f37d0fd5af2487f60aee9323882c39f2e9 (patch) | |
tree | 2a0947a5c4df4a6fdefd7769616b83f6b53c6aa2 /chrome/browser/window_sizer.cc | |
parent | 78590369cbb7a30a248d3d037b0088275cd4616b (diff) | |
download | chromium_src-4eaa87f37d0fd5af2487f60aee9323882c39f2e9.zip chromium_src-4eaa87f37d0fd5af2487f60aee9323882c39f2e9.tar.gz chromium_src-4eaa87f37d0fd5af2487f60aee9323882c39f2e9.tar.bz2 |
Reorganize fullscreen mode handling. Now nearly everything is in WindowWin. This also includes work area change notifications, which only really apply to Windows (and not pure Widgets) anyway. Some parts (namely, the browser-specific things) are still in BrowserView.This allows me to fix the bug where unlocking your screen resized fullscreen mode windows incorrectly.There are probably one or two other small bits tangled in here -- this got a bit messy. I moved the exit bubble out of browser/ because it wasn't browser-specific; in theory, any WindowWin can now go into fullscreen mode.BUG=8159
Review URL: http://codereview.chromium.org/78002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/window_sizer.cc')
-rw-r--r-- | chrome/browser/window_sizer.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/window_sizer.cc b/chrome/browser/window_sizer.cc index dfee295..a3ec88d 100644 --- a/chrome/browser/window_sizer.cc +++ b/chrome/browser/window_sizer.cc @@ -41,7 +41,7 @@ class DefaultMonitorInfoProvider : public WindowSizer::MonitorInfoProvider { const gfx::Rect& match_rect) const { CRect other_bounds_crect = match_rect.ToRECT(); MONITORINFO monitor_info = GetMonitorInfoForMonitor(MonitorFromRect( - &other_bounds_crect, MONITOR_DEFAULTTOPRIMARY)); + &other_bounds_crect, MONITOR_DEFAULTTONEAREST)); return gfx::Rect(monitor_info.rcWork); } @@ -49,7 +49,7 @@ class DefaultMonitorInfoProvider : public WindowSizer::MonitorInfoProvider { const gfx::Rect& match_rect) const { CRect other_bounds_crect = match_rect.ToRECT(); MONITORINFO monitor_info = GetMonitorInfoForMonitor(MonitorFromRect( - &other_bounds_crect, MONITOR_DEFAULTTOPRIMARY)); + &other_bounds_crect, MONITOR_DEFAULTTONEAREST)); return gfx::Point(monitor_info.rcWork.left - monitor_info.rcMonitor.left, monitor_info.rcWork.top - monitor_info.rcMonitor.top); } @@ -130,9 +130,9 @@ class DefaultStateProvider : public WindowSizer::StateProvider { for (; it != end; ++it) { Browser* last_active = *it; if (last_active && last_active->type() == Browser::TYPE_NORMAL) { - BrowserWindow* frame = last_active->window(); - DCHECK(frame); - *bounds = frame->GetNormalBounds(); + BrowserWindow* window = last_active->window(); + DCHECK(window); + *bounds = window->GetNormalBounds(); return true; } } |