Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: ui/message_center/notification_delegate.h

Issue 2335293002: ShouldDisplayOverFullscreen implementation (Closed)
Patch Set: Rebasing to try to get patch to compile Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698