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

Unified Diff: content/browser/web_contents/aura/overscroll_navigation_overlay.cc

Issue 678973004: 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
Index: content/browser/web_contents/aura/overscroll_navigation_overlay.cc
diff --git a/content/browser/web_contents/aura/overscroll_navigation_overlay.cc b/content/browser/web_contents/aura/overscroll_navigation_overlay.cc
index 930289d6700a0909f5fafa4a7317014b951cb3be..3660897dab3ebbe7a6215bed4aa3f8c4d30ab379 100644
--- a/content/browser/web_contents/aura/overscroll_navigation_overlay.cc
+++ b/content/browser/web_contents/aura/overscroll_navigation_overlay.cc
@@ -45,7 +45,7 @@ class ImageLayerDelegate : public ui::LayerDelegate {
public:
ImageLayerDelegate() {}
- virtual ~ImageLayerDelegate() {}
+ ~ImageLayerDelegate() override {}
void SetImage(const gfx::Image& image) {
image_ = image;
@@ -55,7 +55,7 @@ class ImageLayerDelegate : public ui::LayerDelegate {
private:
// Overridden from ui::LayerDelegate:
- virtual void OnPaintLayer(gfx::Canvas* canvas) override {
+ void OnPaintLayer(gfx::Canvas* canvas) override {
if (image_.IsEmpty()) {
canvas->DrawColor(SK_ColorWHITE);
} else {
@@ -68,16 +68,14 @@ class ImageLayerDelegate : public ui::LayerDelegate {
}
}
- virtual void OnDelegatedFrameDamage(
- const gfx::Rect& damage_rect_in_dip) override {}
+ void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override {}
// Called when the layer's device scale factor has changed.
- virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override {
- }
+ void OnDeviceScaleFactorChanged(float device_scale_factor) override {}
// Invoked prior to the bounds changing. The returned closured is run after
// the bounds change.
- virtual base::Closure PrepareForLayerBoundsChange() override {
+ base::Closure PrepareForLayerBoundsChange() override {
return base::Closure();
}
@@ -110,21 +108,19 @@ class OverlayDismissAnimator
}
// Overridden from ui::LayerAnimationObserver
- virtual void OnLayerAnimationEnded(
- ui::LayerAnimationSequence* sequence) override {
+ void OnLayerAnimationEnded(ui::LayerAnimationSequence* sequence) override {
delete this;
}
- virtual void OnLayerAnimationAborted(
- ui::LayerAnimationSequence* sequence) override {
+ void OnLayerAnimationAborted(ui::LayerAnimationSequence* sequence) override {
delete this;
}
- virtual void OnLayerAnimationScheduled(
+ void OnLayerAnimationScheduled(
ui::LayerAnimationSequence* sequence) override {}
private:
- virtual ~OverlayDismissAnimator() {}
+ ~OverlayDismissAnimator() override {}
scoped_ptr<ui::Layer> layer_;

Powered by Google App Engine
This is Rietveld 408576698