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

Unified Diff: ui/message_center/message_center_tray.h

Issue 667923002: Standardize usage of virtual/override/final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/message_center_impl_unittest.cc ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_tray.h
diff --git a/ui/message_center/message_center_tray.h b/ui/message_center/message_center_tray.h
index 6e8140945a074afb5df12639a473825999fbf416..5cd6b8d314c49384e28e16df3cc6afc6a7bad977 100644
--- a/ui/message_center/message_center_tray.h
+++ b/ui/message_center/message_center_tray.h
@@ -34,7 +34,7 @@ class MESSAGE_CENTER_EXPORT MessageCenterTray : public MessageCenterObserver {
public:
MessageCenterTray(MessageCenterTrayDelegate* delegate,
message_center::MessageCenter* message_center);
- virtual ~MessageCenterTray();
+ ~MessageCenterTray() override;
// Shows or updates the message center bubble and hides the popup bubble.
// Returns whether the message center is visible after the call, whether or
@@ -74,21 +74,17 @@ class MESSAGE_CENTER_EXPORT MessageCenterTray : public MessageCenterObserver {
message_center::MessageCenter* message_center() { return message_center_; }
// Overridden from MessageCenterObserver:
- virtual void OnNotificationAdded(const std::string& notification_id) override;
- virtual void OnNotificationRemoved(const std::string& notification_id,
- bool by_user) override;
- virtual void OnNotificationUpdated(
- const std::string& notification_id) override;
- virtual void OnNotificationClicked(
- const std::string& notification_id) override;
- virtual void OnNotificationButtonClicked(
- const std::string& notification_id,
- int button_index) override;
- virtual void OnNotificationDisplayed(
- const std::string& notification_id,
- const DisplaySource source) override;
- virtual void OnQuietModeChanged(bool in_quiet_mode) override;
- virtual void OnBlockingStateChanged(NotificationBlocker* blocker) override;
+ void OnNotificationAdded(const std::string& notification_id) override;
+ void OnNotificationRemoved(const std::string& notification_id,
+ bool by_user) override;
+ void OnNotificationUpdated(const std::string& notification_id) override;
+ void OnNotificationClicked(const std::string& notification_id) override;
+ void OnNotificationButtonClicked(const std::string& notification_id,
+ int button_index) override;
+ void OnNotificationDisplayed(const std::string& notification_id,
+ const DisplaySource source) override;
+ void OnQuietModeChanged(bool in_quiet_mode) override;
+ void OnBlockingStateChanged(NotificationBlocker* blocker) override;
private:
void OnMessageCenterChanged();
« no previous file with comments | « ui/message_center/message_center_impl_unittest.cc ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698