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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.h

Issue 681893002: 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 | « chrome/browser/ui/views/infobars/infobar_container_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/infobar_view.h
diff --git a/chrome/browser/ui/views/infobars/infobar_view.h b/chrome/browser/ui/views/infobars/infobar_view.h
index 042dd2603c68bc44b476663447005bdcafea8c60..0a26609c7cc02994acc88a6874a346b5984a4dfa 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.h
+++ b/chrome/browser/ui/views/infobars/infobar_view.h
@@ -45,7 +45,7 @@ class InfoBarView : public infobars::InfoBar,
static const int kButtonButtonSpacing;
static const int kEndOfLabelSpacing;
- virtual ~InfoBarView();
+ ~InfoBarView() override;
// Creates a label with the appropriate font and color for an infobar.
views::Label* CreateLabel(const base::string16& text) const;
@@ -67,15 +67,14 @@ class InfoBarView : public infobars::InfoBar,
static void AssignWidths(Labels* labels, int available_width);
// views::View:
- virtual void Layout() override;
- virtual void ViewHierarchyChanged(
+ void Layout() override;
+ void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) override;
// views::ButtonListener:
// NOTE: This must not be called if we're unowned. (Subclasses should ignore
// calls to ButtonPressed() in this case.)
- virtual void ButtonPressed(views::Button* sender,
- const ui::Event& event) override;
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
// Returns the minimum width the content (that is, everything between the icon
// and the close button) can be shrunk to. This is used to prevent the close
@@ -108,19 +107,18 @@ class InfoBarView : public infobars::InfoBar,
static void AssignWidthsSorted(Labels* labels, int available_width);
// InfoBar:
- virtual void PlatformSpecificShow(bool animate) override;
- virtual void PlatformSpecificHide(bool animate) override;
- virtual void PlatformSpecificOnHeightsRecalculated() override;
+ void PlatformSpecificShow(bool animate) override;
+ void PlatformSpecificHide(bool animate) override;
+ void PlatformSpecificOnHeightsRecalculated() override;
// views::View:
- virtual void GetAccessibleState(ui::AXViewState* state) override;
- virtual gfx::Size GetPreferredSize() const override;
- virtual void PaintChildren(gfx::Canvas* canvas,
- const views::CullSet& cull_set) override;
+ void GetAccessibleState(ui::AXViewState* state) override;
+ gfx::Size GetPreferredSize() const override;
+ void PaintChildren(gfx::Canvas* canvas,
+ const views::CullSet& cull_set) override;
// views::ExternalFocusTracker:
- virtual void OnWillChangeFocus(View* focused_before,
- View* focused_now) override;
+ void OnWillChangeFocus(View* focused_before, View* focused_now) override;
// The optional icon at the left edge of the InfoBar.
views::ImageView* icon_;
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698