summaryrefslogtreecommitdiffstats
path: root/ash/wm/frame_painter.h
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-09 21:34:18 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-09 21:34:18 +0000
commitd35475f4e48aafefe2a843768ff35ca9895caabe (patch)
treeddb2a5b9a8540295204cfbca71fa9ac71f2bfd11 /ash/wm/frame_painter.h
parent97d6e82a99e5e17fe6c304f8a309f3c52e8a1056 (diff)
downloadchromium_src-d35475f4e48aafefe2a843768ff35ca9895caabe.zip
chromium_src-d35475f4e48aafefe2a843768ff35ca9895caabe.tar.gz
chromium_src-d35475f4e48aafefe2a843768ff35ca9895caabe.tar.bz2
Ash: Ensure windows have a minimum size
This also fixes DCHECKs when you resize the windows too small. BUG=116872 TEST=manual, resize a browser window to the smallest size possible, can see a tab, can see frame controls Review URL: https://chromiumcodereview.appspot.com/9669008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/frame_painter.h')
-rw-r--r--ash/wm/frame_painter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/wm/frame_painter.h b/ash/wm/frame_painter.h
index 7dac596..2cf474d 100644
--- a/ash/wm/frame_painter.h
+++ b/ash/wm/frame_painter.h
@@ -47,6 +47,7 @@ class ASH_EXPORT FramePainter {
const gfx::Rect& client_bounds) const;
int NonClientHitTest(views::NonClientFrameView* view,
const gfx::Point& point);
+ gfx::Size GetMinimumSize(views::NonClientFrameView* view);
// Paints the frame header.
void PaintHeader(views::NonClientFrameView* view,
@@ -79,6 +80,9 @@ class ASH_EXPORT FramePainter {
int hot_bitmap_id,
int pushed_bitmap_id);
+ // Returns the offset between window left edge and title string.
+ int GetTitleOffsetX() const;
+
// Not owned
views::Widget* frame_;
views::View* window_icon_; // May be NULL.