summaryrefslogtreecommitdiffstats
path: root/chrome/browser/window_sizer.h
diff options
context:
space:
mode:
authoridanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 04:51:26 +0000
committeridanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 04:51:26 +0000
commit2226eb1ef4b32cf154205505c4b5bc40327b6efe (patch)
tree3c875c5d9a8b3316a59517945e6011e9711d656f /chrome/browser/window_sizer.h
parentdf2013932664ec3718248ed7c6f41445bb939a10 (diff)
downloadchromium_src-2226eb1ef4b32cf154205505c4b5bc40327b6efe.zip
chromium_src-2226eb1ef4b32cf154205505c4b5bc40327b6efe.tar.gz
chromium_src-2226eb1ef4b32cf154205505c4b5bc40327b6efe.tar.bz2
Issue 7318: Popup Titlebar Appears Under Windows Taskbar
Simple fix to make sure the task bar placement and size is taking into consideration when placing a new popup window. BUG=7318 Review URL: http://codereview.chromium.org/29002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/window_sizer.h')
-rw-r--r--chrome/browser/window_sizer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/window_sizer.h b/chrome/browser/window_sizer.h
index 19f0135..3a819b2 100644
--- a/chrome/browser/window_sizer.h
+++ b/chrome/browser/window_sizer.h
@@ -84,6 +84,9 @@ class WindowSizer {
gfx::Rect* window_bounds,
bool* maximized);
+ // Returns the default origin for popups of the given size.
+ static gfx::Point GetDefaultPopupOrigin(const gfx::Size& size);
+
// Determines the position, size and maximized state for a window as it is
// created. This function uses several strategies to figure out optimal size
// and placement, first looking for an existing active window, then falling
@@ -98,6 +101,7 @@ class WindowSizer {
void DetermineWindowBounds(const gfx::Rect& specified_bounds,
gfx::Rect* bounds,
bool* maximized) const;
+
private:
explicit WindowSizer(const std::wstring& app_name);