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

Unified Diff: ui/views/background.cc

Issue 679233002: 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/animation/scroll_animator.h ('k') | ui/views/border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/background.cc
diff --git a/ui/views/background.cc b/ui/views/background.cc
index d2d64bb6d70aa1d4ecd2b681ebbedf17404616f5..0fbd0ecbebe41adfce22806ba9395cc4dde17a5d 100644
--- a/ui/views/background.cc
+++ b/ui/views/background.cc
@@ -22,7 +22,7 @@ class SolidBackground : public Background {
SetNativeControlColor(color);
}
- virtual void Paint(gfx::Canvas* canvas, View* view) const override {
+ void Paint(gfx::Canvas* canvas, View* view) const override {
// Fill the background. Note that we don't constrain to the bounds as
// canvas is already clipped for us.
canvas->DrawColor(get_color());
@@ -39,13 +39,12 @@ class BackgroundPainter : public Background {
DCHECK(painter);
}
- virtual ~BackgroundPainter() {
+ ~BackgroundPainter() override {
if (owns_painter_)
delete painter_;
}
-
- virtual void Paint(gfx::Canvas* canvas, View* view) const override {
+ void Paint(gfx::Canvas* canvas, View* view) const override {
Painter::PaintPainterAt(canvas, painter_, view->GetLocalBounds());
}
« no previous file with comments | « ui/views/animation/scroll_animator.h ('k') | ui/views/border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698