OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_ | 5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_ |
6 #define UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_ | 6 #define UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // To be called in order to detect if a settings button should be displayed. | 53 // To be called in order to detect if a settings button should be displayed. |
54 virtual bool ShouldDisplaySettingsButton(); | 54 virtual bool ShouldDisplaySettingsButton(); |
55 | 55 |
56 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) | 56 #if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX) |
57 // To be called to construct the contents view of a popup for notifications | 57 // To be called to construct the contents view of a popup for notifications |
58 // whose type is NOTIFICATION_TYPE_CUSTOM. | 58 // whose type is NOTIFICATION_TYPE_CUSTOM. |
59 virtual std::unique_ptr<views::View> CreateCustomContent(); | 59 virtual std::unique_ptr<views::View> CreateCustomContent(); |
60 #endif | 60 #endif |
61 | 61 |
| 62 // Indicates whether this notification should be displayed when there is |
| 63 // fullscreen content being displayed. |
| 64 virtual bool ShouldDisplayOverFullscreen() const; |
| 65 |
62 protected: | 66 protected: |
63 virtual ~NotificationDelegate() {} | 67 virtual ~NotificationDelegate() {} |
64 | 68 |
65 private: | 69 private: |
66 friend class base::RefCountedThreadSafe<NotificationDelegate>; | 70 friend class base::RefCountedThreadSafe<NotificationDelegate>; |
67 }; | 71 }; |
68 | 72 |
69 // A simple notification delegate which invokes the passed closure when clicked. | 73 // A simple notification delegate which invokes the passed closure when clicked. |
70 class MESSAGE_CENTER_EXPORT HandleNotificationClickedDelegate | 74 class MESSAGE_CENTER_EXPORT HandleNotificationClickedDelegate |
71 : public NotificationDelegate { | 75 : public NotificationDelegate { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 108 |
105 private: | 109 private: |
106 ButtonClickCallback button_callback_; | 110 ButtonClickCallback button_callback_; |
107 | 111 |
108 DISALLOW_COPY_AND_ASSIGN(HandleNotificationButtonClickDelegate); | 112 DISALLOW_COPY_AND_ASSIGN(HandleNotificationButtonClickDelegate); |
109 }; | 113 }; |
110 | 114 |
111 } // namespace message_center | 115 } // namespace message_center |
112 | 116 |
113 #endif // UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_ | 117 #endif // UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_ |
OLD | NEW |