diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 02:24:12 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 02:24:12 +0000 |
commit | 4209190e35b11413ede67daf3401ca248ec29291 (patch) | |
tree | dc5997197f0808ef86ea7a2acf63984a450a9bc4 /ash/shelf | |
parent | 40592fcdedb0486f3b4cbdd36b251d80e6be40a2 (diff) | |
download | chromium_src-4209190e35b11413ede67daf3401ca248ec29291.zip chromium_src-4209190e35b11413ede67daf3401ca248ec29291.tar.gz chromium_src-4209190e35b11413ede67daf3401ca248ec29291.tar.bz2 |
Warn on missing OVERRIDE/virtual everywhere, not just in header files.
This is only enabled for Linux (so far).
BUG=115047
Review URL: https://chromiumcodereview.appspot.com/14696007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shelf')
-rw-r--r-- | ash/shelf/shelf_widget.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/shelf/shelf_widget.cc b/ash/shelf/shelf_widget.cc index f847a5e..eab771be1ad 100644 --- a/ash/shelf/shelf_widget.cc +++ b/ash/shelf/shelf_widget.cc @@ -71,13 +71,13 @@ class DimmerView : public views::View, } // ash::internal::BackgroundAnimatorDelegate overrides: - virtual void UpdateBackground(int alpha) { + virtual void UpdateBackground(int alpha) OVERRIDE { alpha_ = alpha; SchedulePaint(); } // views::View overrides: - void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; + virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; // A function to test the current alpha used. int get_dimming_alpha_for_test() { return alpha_; } @@ -87,7 +87,7 @@ class DimmerView : public views::View, class DimmerEventFilter : public ui::EventHandler { public: explicit DimmerEventFilter(DimmerView* owner); - ~DimmerEventFilter(); + virtual ~DimmerEventFilter(); // Overridden from ui::EventHandler: virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |