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

Unified Diff: ui/message_center/views/message_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_view.h
diff --git a/ui/message_center/views/message_view.h b/ui/message_center/views/message_view.h
index 0c0d3c54f0831d13f8e44e5ed05ad8da049ed0ca..d995865e92a0d38be878089b8be656a00cbd3c26 100644
--- a/ui/message_center/views/message_view.h
+++ b/ui/message_center/views/message_view.h
@@ -55,7 +55,7 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
const NotifierId& notifier_id,
const gfx::ImageSkia& small_image,
const base::string16& display_source);
- virtual ~MessageView();
+ ~MessageView() override;
// Updates this view with the new data contained in the notification.
virtual void UpdateWithNotification(const Notification& notification);
@@ -74,21 +74,20 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
}
// Overridden from views::View:
- virtual void GetAccessibleState(ui::AXViewState* state) override;
- virtual bool OnMousePressed(const ui::MouseEvent& event) override;
- virtual bool OnKeyPressed(const ui::KeyEvent& event) override;
- virtual bool OnKeyReleased(const ui::KeyEvent& event) override;
- virtual void OnPaint(gfx::Canvas* canvas) override;
- virtual void OnFocus() override;
- virtual void OnBlur() override;
- virtual void Layout() override;
+ void GetAccessibleState(ui::AXViewState* state) override;
+ bool OnMousePressed(const ui::MouseEvent& event) override;
+ bool OnKeyPressed(const ui::KeyEvent& event) override;
+ bool OnKeyReleased(const ui::KeyEvent& event) override;
+ void OnPaint(gfx::Canvas* canvas) override;
+ void OnFocus() override;
+ void OnBlur() override;
+ void Layout() override;
// Overridden from ui::EventHandler:
- virtual void OnGestureEvent(ui::GestureEvent* event) override;
+ void OnGestureEvent(ui::GestureEvent* event) override;
// Overridden from ButtonListener:
- virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) override;
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; }
std::string notification_id() { return notification_id_; }
@@ -97,7 +96,7 @@ class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
protected:
// Overridden from views::SlideOutView:
- virtual void OnSlideOut() override;
+ void OnSlideOut() override;
views::ImageView* small_image() { return small_image_view_.get(); }
views::ImageButton* close_button() { return close_button_.get(); }

Powered by Google App Engine
This is Rietveld 408576698