summaryrefslogtreecommitdiff
path: root/chromium/ui/message_center/message_center.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-01-25 11:39:07 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-01-25 15:20:42 +0000
commit6c91641271e536ffaa88a1dff5127e42ee99a91e (patch)
tree703d9dd49602377ddc90cbf886aad37913f2496b /chromium/ui/message_center/message_center.h
parentb145b7fafd36f0c260d6a768c81fc14e32578099 (diff)
downloadqtwebengine-chromium-6c91641271e536ffaa88a1dff5127e42ee99a91e.tar.gz
BASELINE: Update Chromium to 49.0.2623.23
Also adds missing printing sources. Change-Id: I3726b8f0c7d6751c9fc846096c571fadca7108cd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'chromium/ui/message_center/message_center.h')
-rw-r--r--chromium/ui/message_center/message_center.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/chromium/ui/message_center/message_center.h b/chromium/ui/message_center/message_center.h
index f626893c6d4..00d9545d639 100644
--- a/chromium/ui/message_center/message_center.h
+++ b/chromium/ui/message_center/message_center.h
@@ -5,14 +5,18 @@
#ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
#define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
+#include <stddef.h>
+
#include <string>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "ui/message_center/message_center_export.h"
#include "ui/message_center/message_center_types.h"
#include "ui/message_center/notification_list.h"
class DownloadNotification;
+class DownloadNotificationTestBase;
namespace base {
class DictionaryValue;
@@ -132,6 +136,11 @@ class MESSAGE_CENTER_EXPORT MessageCenter {
virtual void ClickOnNotificationButton(const std::string& id,
int button_index) = 0;
+ // Called by the UI classes when the settings buttons is clicked
+ // to trigger the notification's delegate and update the message
+ // center observers.
+ virtual void ClickOnSettingsButton(const std::string& id) = 0;
+
// This should be called by UI classes after a visible notification popup
// closes, indicating that the notification has been shown to the user.
// |mark_notification_as_read|, if false, will unset the read bit on a
@@ -176,12 +185,15 @@ class MESSAGE_CENTER_EXPORT MessageCenter {
protected:
friend class ::DownloadNotification;
+ friend class ::DownloadNotificationTestBase;
friend class MessageCenterImplTest;
+ friend class MessageCenterImplTestWithChangeQueue;
friend class MessageCenterImplTestWithoutChangeQueue;
+ friend class MessageCenterTrayTest;
friend class TrayViewControllerTest;
friend class test::MessagePopupCollectionTest;
virtual void DisableTimersForTest() = 0;
- virtual void DisableChangeQueueForTest() = 0;
+ virtual void EnableChangeQueueForTest(bool enabled) = 0;
MessageCenter();
virtual ~MessageCenter();