summaryrefslogtreecommitdiffstats
path: root/chrome/browser/window_sizer.h
diff options
context:
space:
mode:
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);