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

Unified Diff: ui/message_center/views/message_center_view.h

Issue 657923005: Standardize usage of virtual/override/final specifiers. (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
Index: ui/message_center/views/message_center_view.h
diff --git a/ui/message_center/views/message_center_view.h b/ui/message_center/views/message_center_view.h
index 6f72e9107c60aba8c921b184bd6b49665fca8a00..c9f99bfd129cc9adf5770bfe314473dd810aded5 100644
--- a/ui/message_center/views/message_center_view.h
+++ b/ui/message_center/views/message_center_view.h
@@ -50,7 +50,7 @@ class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View,
bool initially_settings_visible,
bool top_down,
const base::string16& title);
- virtual ~MessageCenterView();
+ ~MessageCenterView() override;
void SetNotifications(const NotificationList::Notifications& notifications);
@@ -68,33 +68,32 @@ class MESSAGE_CENTER_EXPORT MessageCenterView : public views::View,
protected:
// Overridden from views::View:
- virtual void Layout() override;
- virtual gfx::Size GetPreferredSize() const override;
- virtual int GetHeightForWidth(int width) const override;
- virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
- virtual void OnMouseExited(const ui::MouseEvent& event) override;
+ void Layout() override;
+ gfx::Size GetPreferredSize() const override;
+ int GetHeightForWidth(int width) const override;
+ bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
+ void OnMouseExited(const ui::MouseEvent& event) override;
// Overridden from MessageCenterObserver:
- virtual void OnNotificationAdded(const std::string& id) override;
- virtual void OnNotificationRemoved(const std::string& id,
- bool by_user) override;
- virtual void OnNotificationUpdated(const std::string& id) override;
+ void OnNotificationAdded(const std::string& id) override;
+ void OnNotificationRemoved(const std::string& id, bool by_user) override;
+ void OnNotificationUpdated(const std::string& id) override;
// Overridden from MessageCenterController:
- virtual void ClickOnNotification(const std::string& notification_id) override;
- virtual void RemoveNotification(const std::string& notification_id,
- bool by_user) override;
- virtual scoped_ptr<ui::MenuModel> CreateMenuModel(
+ void ClickOnNotification(const std::string& notification_id) override;
+ void RemoveNotification(const std::string& notification_id,
+ bool by_user) override;
+ scoped_ptr<ui::MenuModel> CreateMenuModel(
const NotifierId& notifier_id,
const base::string16& display_source) override;
- virtual bool HasClickedListener(const std::string& notification_id) override;
- virtual void ClickOnNotificationButton(const std::string& notification_id,
- int button_index) override;
+ bool HasClickedListener(const std::string& notification_id) override;
+ void ClickOnNotificationButton(const std::string& notification_id,
+ int button_index) override;
// Overridden from gfx::AnimationDelegate:
- virtual void AnimationEnded(const gfx::Animation* animation) override;
- virtual void AnimationProgressed(const gfx::Animation* animation) override;
- virtual void AnimationCanceled(const gfx::Animation* animation) override;
+ void AnimationEnded(const gfx::Animation* animation) override;
+ void AnimationProgressed(const gfx::Animation* animation) override;
+ void AnimationCanceled(const gfx::Animation* animation) override;
private:
friend class MessageCenterViewTest;
« no previous file with comments | « ui/message_center/views/message_center_button_bar.cc ('k') | ui/message_center/views/message_center_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698