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

Unified Diff: ash/system/tray/tray_background_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_background_view.h ('k') | ash/system/tray/tray_bar_button_with_title.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_background_view.cc
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc
index 623d257df69e8fe94c9bfb8ad898e58248a74319..e8b0f2fafe035b6f43f0a13f16798aa05605c4a0 100644
--- a/ash/system/tray/tray_background_view.cc
+++ b/ash/system/tray/tray_background_view.cc
@@ -71,13 +71,12 @@ class TrayBackgroundView::TrayWidgetObserver : public views::WidgetObserver {
: host_(host) {
}
- virtual void OnWidgetBoundsChanged(views::Widget* widget,
- const gfx::Rect& new_bounds) override {
+ void OnWidgetBoundsChanged(views::Widget* widget,
+ const gfx::Rect& new_bounds) override {
host_->AnchorUpdated();
}
- virtual void OnWidgetVisibilityChanged(views::Widget* widget,
- bool visible) override {
+ void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override {
host_->AnchorUpdated();
}
@@ -150,7 +149,7 @@ class TrayBackground : public views::Background {
IDR_AURA_TRAY_BG_VERTICAL_BOTTOM_PRESSED).ToImageSkia();
}
- virtual ~TrayBackground() {}
+ ~TrayBackground() override {}
SkColor color() { return color_; }
void set_color(SkColor color) { color_ = color; }
@@ -163,7 +162,7 @@ class TrayBackground : public views::Background {
}
// Overridden from views::Background.
- virtual void Paint(gfx::Canvas* canvas, views::View* view) const override {
+ void Paint(gfx::Canvas* canvas, views::View* view) const override {
int orientation = kImageHorizontal;
ShelfWidget* shelf_widget = GetShelfWidget();
if (shelf_widget &&
« no previous file with comments | « ash/system/tray/tray_background_view.h ('k') | ash/system/tray/tray_bar_button_with_title.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698