summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/balloon.h
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 17:40:57 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 17:40:57 +0000
commit25de9c108cb35a2cc5eb1209b65fc38060097bea (patch)
tree4f600cedfca6930530bc8a392108f6d2dd544ccb /chrome/browser/notifications/balloon.h
parent638d45d84246e0a0f301c1b7aaa618a45431c0d1 (diff)
downloadchromium_src-25de9c108cb35a2cc5eb1209b65fc38060097bea.zip
chromium_src-25de9c108cb35a2cc5eb1209b65fc38060097bea.tar.gz
chromium_src-25de9c108cb35a2cc5eb1209b65fc38060097bea.tar.bz2
fix the notification continuous-resize problem by preventing scrollbars from being used until the maximum size is reached.
BUG=48494 TEST=create notifications of various sizes, watch for jitter Review URL: http://codereview.chromium.org/2941003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/balloon.h')
-rw-r--r--chrome/browser/notifications/balloon.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/notifications/balloon.h b/chrome/browser/notifications/balloon.h
index a60d9a9..87440c9 100644
--- a/chrome/browser/notifications/balloon.h
+++ b/chrome/browser/notifications/balloon.h
@@ -63,6 +63,11 @@ class Balloon {
const gfx::Size& content_size() const { return content_size_; }
void set_content_size(const gfx::Size& size) { content_size_ = size; }
+ const gfx::Size& min_scrollbar_size() const { return min_scrollbar_size_; }
+ void set_min_scrollbar_size(const gfx::Size& size) {
+ min_scrollbar_size_ = size;
+ }
+
// Request a new content size for this balloon. This will get passed
// to the balloon collection for checking against available space and
// min/max restrictions.
@@ -110,6 +115,9 @@ class Balloon {
gfx::Point position_;
gfx::Size content_size_;
+ // Smallest size for this balloon where scrollbars will be shown.
+ gfx::Size min_scrollbar_size_;
+
DISALLOW_COPY_AND_ASSIGN(Balloon);
};