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

Unified Diff: ui/message_center/views/notification_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
« no previous file with comments | « ui/message_center/views/notification_button.h ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view.h
diff --git a/ui/message_center/views/notification_view.h b/ui/message_center/views/notification_view.h
index 0cb64447d36e891c6eebfd4c9a55907172c137ff..38821ff7fb4d81f1f659311ddcaf36c81f38bbdd 100644
--- a/ui/message_center/views/notification_view.h
+++ b/ui/message_center/views/notification_view.h
@@ -43,26 +43,24 @@ class MESSAGE_CENTER_EXPORT NotificationView
static NotificationView* Create(MessageCenterController* controller,
const Notification& notification,
bool top_level);
- virtual ~NotificationView();
+ ~NotificationView() override;
// Overridden from views::View:
- virtual gfx::Size GetPreferredSize() const override;
- virtual int GetHeightForWidth(int width) const override;
- virtual void Layout() override;
- virtual void OnFocus() override;
- virtual void ScrollRectToVisible(const gfx::Rect& rect) override;
- virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
+ gfx::Size GetPreferredSize() const override;
+ int GetHeightForWidth(int width) const override;
+ void Layout() override;
+ void OnFocus() override;
+ void ScrollRectToVisible(const gfx::Rect& rect) override;
+ gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
// Overridden from MessageView:
- virtual void UpdateWithNotification(
- const Notification& notification) override;
- virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) override;
+ void UpdateWithNotification(const Notification& notification) override;
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
// Overridden from MessageViewController:
- virtual void ClickOnNotification(const std::string& notification_id) override;
- virtual void RemoveNotification(const std::string& notification_id,
- bool by_user) override;
+ void ClickOnNotification(const std::string& notification_id) override;
+ void RemoveNotification(const std::string& notification_id,
+ bool by_user) override;
void set_controller(MessageCenterController* controller) {
controller_ = controller;
@@ -81,8 +79,7 @@ class MESSAGE_CENTER_EXPORT NotificationView
friend class NotificationViewTest;
// views::ViewTargeterDelegate:
- virtual views::View* TargetForRect(views::View* root,
- const gfx::Rect& rect) override;
+ views::View* TargetForRect(views::View* root, const gfx::Rect& rect) override;
void CreateOrUpdateViews(const Notification& notification);
void SetAccessibleName(const Notification& notification);
« no previous file with comments | « ui/message_center/views/notification_button.h ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698