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

Unified Diff: ash/system/tray/tray_details_view.cc

Issue 685483004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « ash/system/tray/tray_details_view.h ('k') | ash/system/tray/tray_details_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_details_view.cc
diff --git a/ash/system/tray/tray_details_view.cc b/ash/system/tray/tray_details_view.cc
index faa9513fa4d72c034b44fba97b64bb6aca6d2cf9..6e0a5607dabca698e35b0727c45372dd04e86cbd 100644
--- a/ash/system/tray/tray_details_view.cc
+++ b/ash/system/tray/tray_details_view.cc
@@ -20,14 +20,14 @@ class ScrollSeparator : public views::View {
public:
ScrollSeparator() {}
- virtual ~ScrollSeparator() {}
+ ~ScrollSeparator() override {}
private:
// Overriden from views::View.
- virtual void OnPaint(gfx::Canvas* canvas) override {
+ void OnPaint(gfx::Canvas* canvas) override {
canvas->FillRect(gfx::Rect(0, height() / 2, width(), 1), kBorderLightColor);
}
- virtual gfx::Size GetPreferredSize() const override {
+ gfx::Size GetPreferredSize() const override {
return gfx::Size(1, kTrayPopupScrollSeparatorHeight);
}
@@ -37,26 +37,22 @@ class ScrollSeparator : public views::View {
class ScrollBorder : public views::Border {
public:
ScrollBorder() {}
- virtual ~ScrollBorder() {}
+ ~ScrollBorder() override {}
void set_visible(bool visible) { visible_ = visible; }
private:
// Overridden from views::Border.
- virtual void Paint(const views::View& view, gfx::Canvas* canvas) override {
+ void Paint(const views::View& view, gfx::Canvas* canvas) override {
if (!visible_)
return;
canvas->FillRect(gfx::Rect(0, view.height() - 1, view.width(), 1),
kBorderLightColor);
}
- virtual gfx::Insets GetInsets() const override {
- return gfx::Insets(0, 0, 1, 0);
- }
+ gfx::Insets GetInsets() const override { return gfx::Insets(0, 0, 1, 0); }
- virtual gfx::Size GetMinimumSize() const override {
- return gfx::Size(0, 1);
- }
+ gfx::Size GetMinimumSize() const override { return gfx::Size(0, 1); }
bool visible_;
« no previous file with comments | « ash/system/tray/tray_details_view.h ('k') | ash/system/tray/tray_details_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698