diff options
author | markusheintz@chromium.org <markusheintz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 08:29:57 +0000 |
---|---|---|
committer | markusheintz@chromium.org <markusheintz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-24 08:29:57 +0000 |
commit | 3d9926e8244274b9d04007b7f9ce0095d29f6e6a (patch) | |
tree | 6db51ccfc3d7e1ddfa3e03b47274445946dec450 /ash | |
parent | 8a6268d9f7ef89a2a082024f92402f23d1819094 (diff) | |
download | chromium_src-3d9926e8244274b9d04007b7f9ce0095d29f6e6a.zip chromium_src-3d9926e8244274b9d04007b7f9ce0095d29f6e6a.tar.gz chromium_src-3d9926e8244274b9d04007b7f9ce0095d29f6e6a.tar.bz2 |
Revert 196080 "Supports MessageCenterObserver interface in Messa..."
> Supports MessageCenterObserver interface in MessageCenterView.
>
> Now it receives the add/remove/update events by itself. This is a
> preparation CL for repositioning on the message center, but this itself
> also allows partial-update in the center.
>
> BUG=224089
> TEST=no break on existing tests
>
> Review URL: https://chromiumcodereview.appspot.com/14358013
TBR=mukai@chromium.org
Review URL: https://codereview.chromium.org/14452003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/system/web_notification/web_notification_tray.cc | 5 | ||||
-rw-r--r-- | ash/system/web_notification/web_notification_tray.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc index 562bc21..722ec3c 100644 --- a/ash/system/web_notification/web_notification_tray.cc +++ b/ash/system/web_notification/web_notification_tray.cc @@ -226,6 +226,11 @@ bool WebNotificationTray::ShowMessageCenter() { return true; } +void WebNotificationTray::UpdateMessageCenter() { + if (message_center_bubble()) + message_center_bubble()->bubble()->ScheduleUpdate(); +} + void WebNotificationTray::HideMessageCenter() { if (!message_center_bubble()) return; diff --git a/ash/system/web_notification/web_notification_tray.h b/ash/system/web_notification/web_notification_tray.h index 6ea8c1b..13be8c6 100644 --- a/ash/system/web_notification/web_notification_tray.h +++ b/ash/system/web_notification/web_notification_tray.h @@ -100,6 +100,7 @@ class ASH_EXPORT WebNotificationTray // Overridden from MessageCenterTrayDelegate. virtual void OnMessageCenterTrayChanged() OVERRIDE; virtual bool ShowMessageCenter() OVERRIDE; + virtual void UpdateMessageCenter() OVERRIDE; virtual void HideMessageCenter() OVERRIDE; virtual bool ShowPopups() OVERRIDE; virtual void UpdatePopups() OVERRIDE; |