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

Unified Diff: ash/wm/gestures/long_press_affordance_handler.cc

Issue 645513008: 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: ash/wm/gestures/long_press_affordance_handler.cc
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc
index 49d3bd867df1494084532ae678190551b41fcd5a..aa8ce3890ab740549617ad5a524f96f2b5e4e439 100644
--- a/ash/wm/gestures/long_press_affordance_handler.cc
+++ b/ash/wm/gestures/long_press_affordance_handler.cc
@@ -161,8 +161,7 @@ class LongPressAffordanceHandler::LongPressAffordanceView
widget_->GetNativeView()->layer()->SetOpacity(kAffordanceOpacityStartValue);
}
- virtual ~LongPressAffordanceView() {
- }
+ ~LongPressAffordanceView() override {}
void UpdateWithGrowAnimation(gfx::Animation* animation) {
// Update the portion of the circle filled so far and re-draw.
@@ -187,12 +186,12 @@ class LongPressAffordanceHandler::LongPressAffordanceView
private:
// Overridden from views::View.
- virtual gfx::Size GetPreferredSize() const override {
+ gfx::Size GetPreferredSize() const override {
return gfx::Size(2 * (kAffordanceOuterRadius + kAffordanceGlowWidth),
2 * (kAffordanceOuterRadius + kAffordanceGlowWidth));
}
- virtual void OnPaint(gfx::Canvas* canvas) override {
+ void OnPaint(gfx::Canvas* canvas) override {
gfx::Point center(GetPreferredSize().width() / 2,
GetPreferredSize().height() / 2);
canvas->Save();
« no previous file with comments | « ash/wm/gestures/long_press_affordance_handler.h ('k') | ash/wm/gestures/overview_gesture_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698