summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/balloon.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-19 23:09:04 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-19 23:09:04 +0000
commit1b882f5c0f0c50d9eefc9cb421a1157e6e1e45d4 (patch)
tree4b4374e68bbf88fd2fa0fb066c2305b5c28a5509 /chrome/browser/notifications/balloon.h
parent9a45ed4ddc97523589a5841b5e60fe39509f93c2 (diff)
downloadchromium_src-1b882f5c0f0c50d9eefc9cb421a1157e6e1e45d4.zip
chromium_src-1b882f5c0f0c50d9eefc9cb421a1157e6e1e45d4.tar.gz
chromium_src-1b882f5c0f0c50d9eefc9cb421a1157e6e1e45d4.tar.bz2
Scroll notification panel so that new/updated notification is visible.
* Updated the test so that the notifications have some text and reasonable size. (Empty string was making them smaller.) * Don't leave KEEPS_SIZE state when new notification is added. (test updated) * A couple of clean ups - const - removed unused code - Added utility function to avoid repeating static_cast. BUG=41011 TEST=new TestScrollBalloonToVisible test is added. updated TestKeepSizeState. Review URL: http://codereview.chromium.org/1638017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/balloon.h')
-rw-r--r--chrome/browser/notifications/balloon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/notifications/balloon.h b/chrome/browser/notifications/balloon.h
index 2df44d9..a60d9a9 100644
--- a/chrome/browser/notifications/balloon.h
+++ b/chrome/browser/notifications/balloon.h
@@ -73,7 +73,7 @@ class Balloon {
void set_view(BalloonView* balloon_view);
// Returns the balloon view associated with the balloon.
- BalloonView* view() {
+ BalloonView* view() const {
return balloon_view_.get();
}