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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 friend class base::RefCountedThreadSafe<NotificationDelegate>; 52 friend class base::RefCountedThreadSafe<NotificationDelegate>;
53 }; 53 };
54 54
55 // A simple notification delegate which invokes the passed closure when clicked. 55 // A simple notification delegate which invokes the passed closure when clicked.
56 class MESSAGE_CENTER_EXPORT HandleNotificationClickedDelegate 56 class MESSAGE_CENTER_EXPORT HandleNotificationClickedDelegate
57 : public NotificationDelegate { 57 : public NotificationDelegate {
58 public: 58 public:
59 explicit HandleNotificationClickedDelegate(const base::Closure& closure); 59 explicit HandleNotificationClickedDelegate(const base::Closure& closure);
60 60
61 // message_center::NotificationDelegate overrides: 61 // message_center::NotificationDelegate overrides:
62 virtual void Display() OVERRIDE; 62 virtual void Display() override;
63 virtual void Error() OVERRIDE; 63 virtual void Error() override;
64 virtual void Close(bool by_user) OVERRIDE; 64 virtual void Close(bool by_user) override;
65 virtual bool HasClickedListener() OVERRIDE; 65 virtual bool HasClickedListener() override;
66 virtual void Click() OVERRIDE; 66 virtual void Click() override;
67 virtual void ButtonClick(int button_index) OVERRIDE; 67 virtual void ButtonClick(int button_index) override;
68 68
69 protected: 69 protected:
70 virtual ~HandleNotificationClickedDelegate(); 70 virtual ~HandleNotificationClickedDelegate();
71 71
72 private: 72 private:
73 std::string id_; 73 std::string id_;
74 base::Closure closure_; 74 base::Closure closure_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(HandleNotificationClickedDelegate); 76 DISALLOW_COPY_AND_ASSIGN(HandleNotificationClickedDelegate);
77 }; 77 };
78 78
79 // A notification delegate which invokes a callback when a notification button 79 // A notification delegate which invokes a callback when a notification button
80 // has been clicked. 80 // has been clicked.
81 class MESSAGE_CENTER_EXPORT HandleNotificationButtonClickDelegate 81 class MESSAGE_CENTER_EXPORT HandleNotificationButtonClickDelegate
82 : public NotificationDelegate { 82 : public NotificationDelegate {
83 public: 83 public:
84 typedef base::Callback<void(int)> ButtonClickCallback; 84 typedef base::Callback<void(int)> ButtonClickCallback;
85 85
86 explicit HandleNotificationButtonClickDelegate( 86 explicit HandleNotificationButtonClickDelegate(
87 const ButtonClickCallback& button_callback); 87 const ButtonClickCallback& button_callback);
88 88
89 // message_center::NotificationDelegate overrides: 89 // message_center::NotificationDelegate overrides:
90 virtual void Display() OVERRIDE; 90 virtual void Display() override;
91 virtual void Error() OVERRIDE; 91 virtual void Error() override;
92 virtual void Close(bool by_user) OVERRIDE; 92 virtual void Close(bool by_user) override;
93 virtual void Click() OVERRIDE; 93 virtual void Click() override;
94 virtual void ButtonClick(int button_index) OVERRIDE; 94 virtual void ButtonClick(int button_index) override;
95 95
96 protected: 96 protected:
97 virtual ~HandleNotificationButtonClickDelegate(); 97 virtual ~HandleNotificationButtonClickDelegate();
98 98
99 private: 99 private:
100 ButtonClickCallback button_callback_; 100 ButtonClickCallback button_callback_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(HandleNotificationButtonClickDelegate); 102 DISALLOW_COPY_AND_ASSIGN(HandleNotificationButtonClickDelegate);
103 }; 103 };
104 104
105 } // namespace message_center 105 } // namespace message_center
106 106
107 #endif // UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_ 107 #endif // UI_MESSAGE_CENTER_NOTIFICATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_tray_unittest.cc ('k') | ui/message_center/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698