diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-15 18:33:45 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-15 18:33:45 +0000 |
commit | ee85dc502267ff233ac50668cd596c0d7a16c6da (patch) | |
tree | 551671fef9fe85bf1db52bd7849de42a7da8ae05 | |
parent | f85fcb9682f5e2d654c0b23d151a478b00785d66 (diff) | |
download | chromium_src-ee85dc502267ff233ac50668cd596c0d7a16c6da.zip chromium_src-ee85dc502267ff233ac50668cd596c0d7a16c6da.tar.gz chromium_src-ee85dc502267ff233ac50668cd596c0d7a16c6da.tar.bz2 |
Fixing method signatures.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/973002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41610 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/chromeos/notifications/balloon_view.h b/chrome/browser/chromeos/notifications/balloon_view.h index 2086d5b..fa51883 100644 --- a/chrome/browser/chromeos/notifications/balloon_view.h +++ b/chrome/browser/chromeos/notifications/balloon_view.h @@ -56,12 +56,12 @@ class BalloonViewImpl : public BalloonView, gfx::Size GetSize() const; // True if the notification is stale. False if the notification is new. - bool stale() { + bool stale() const { return stale_; } // Makes the notification stable. - void make_stale() { + void set_stale() { stale_ = true; } diff --git a/chrome/browser/chromeos/notifications/notification_panel.cc b/chrome/browser/chromeos/notifications/notification_panel.cc index f16f690..724c451 100644 --- a/chrome/browser/chromeos/notifications/notification_panel.cc +++ b/chrome/browser/chromeos/notifications/notification_panel.cc @@ -107,7 +107,7 @@ class BalloonSubContainer : public views::View { for (int i = GetChildViewCount() - 1; i >= 0; --i) { BalloonViewImpl* view = static_cast<BalloonViewImpl*>(GetChildViewAt(i)); - view->make_stale(); + view->set_stale(); } } @@ -418,13 +418,13 @@ void NotificationPanel::StartStaleTimer(Balloon* balloon) { MessageLoop::current()->PostDelayedTask( FROM_HERE, task_factory_.NewRunnableMethod( - &NotificationPanel::StaleNotification, view), + &NotificationPanel::OnStale, view), 1000 * kStaleTimeoutInSeconds); } -void NotificationPanel::StaleNotification(BalloonViewImpl* view) { +void NotificationPanel::OnStale(BalloonViewImpl* view) { if (balloon_container_->HasBalloonView(view) && !view->stale()) { - view->make_stale(); + view->set_stale(); if (balloon_container_->HasStickyNotifications()) { state_ = STICKY_AND_NEW; } else { diff --git a/chrome/browser/chromeos/notifications/notification_panel.h b/chrome/browser/chromeos/notifications/notification_panel.h index 6a5f8cd..cd9bf49 100644 --- a/chrome/browser/chromeos/notifications/notification_panel.h +++ b/chrome/browser/chromeos/notifications/notification_panel.h @@ -106,7 +106,7 @@ class NotificationPanel : public PanelController::Delegate, // A callback function that is called when the notification // (that the view is associated with) becomes stale after a timeout. - void StaleNotification(BalloonViewImpl* view); + void OnStale(BalloonViewImpl* view); BalloonContainer* balloon_container_; scoped_ptr<views::Widget> panel_widget_; |