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

Unified Diff: ui/views/controls/tabbed_pane/tabbed_pane.cc

Issue 681883002: 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/views/controls/tabbed_pane/tabbed_pane.h ('k') | ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tabbed_pane/tabbed_pane.cc
diff --git a/ui/views/controls/tabbed_pane/tabbed_pane.cc b/ui/views/controls/tabbed_pane/tabbed_pane.cc
index aa4b3070211121d71fa8f2c4841ee4bbf0461b99..9d07c6bdbf855a3be4d78dbc30919e5d09c3148b 100644
--- a/ui/views/controls/tabbed_pane/tabbed_pane.cc
+++ b/ui/views/controls/tabbed_pane/tabbed_pane.cc
@@ -35,7 +35,7 @@ const char TabbedPane::kViewClassName[] = "TabbedPane";
class Tab : public View {
public:
Tab(TabbedPane* tabbed_pane, const base::string16& title, View* contents);
- virtual ~Tab();
+ ~Tab() override;
View* contents() const { return contents_; }
@@ -43,12 +43,12 @@ class Tab : public View {
void SetSelected(bool selected);
// Overridden from View:
- virtual bool OnMousePressed(const ui::MouseEvent& event) override;
- virtual void OnMouseEntered(const ui::MouseEvent& event) override;
- virtual void OnMouseExited(const ui::MouseEvent& event) override;
- virtual void OnGestureEvent(ui::GestureEvent* event) override;
- virtual gfx::Size GetPreferredSize() const override;
- virtual void Layout() override;
+ bool OnMousePressed(const ui::MouseEvent& event) override;
+ void OnMouseEntered(const ui::MouseEvent& event) override;
+ void OnMouseExited(const ui::MouseEvent& event) override;
+ void OnGestureEvent(ui::GestureEvent* event) override;
+ gfx::Size GetPreferredSize() const override;
+ void Layout() override;
private:
enum TabState {
@@ -73,12 +73,12 @@ class Tab : public View {
class TabStrip : public View {
public:
explicit TabStrip(TabbedPane* tabbed_pane);
- virtual ~TabStrip();
+ ~TabStrip() override;
// Overridden from View:
- virtual gfx::Size GetPreferredSize() const override;
- virtual void Layout() override;
- virtual void OnPaint(gfx::Canvas* canvas) override;
+ gfx::Size GetPreferredSize() const override;
+ void Layout() override;
+ void OnPaint(gfx::Canvas* canvas) override;
private:
TabbedPane* tabbed_pane_;
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane.h ('k') | ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698