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

Unified Diff: Source/platform/Timer.h

Issue 131003004: Update platform classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | « Source/platform/SharedTimer.h ('k') | Source/platform/animation/AnimationValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/Timer.h
diff --git a/Source/platform/Timer.h b/Source/platform/Timer.h
index 1f03cf11dc894643c79ec0b2ed0eda911cebf9fb..4bf89004d96fcfb407e6166329c946d56dac99f5 100644
--- a/Source/platform/Timer.h
+++ b/Source/platform/Timer.h
@@ -106,7 +106,7 @@ private:
};
template <typename TimerFiredClass>
-class Timer : public TimerBase {
+class Timer FINAL : public TimerBase {
public:
typedef void (TimerFiredClass::*TimerFiredFunction)(Timer*);
@@ -114,7 +114,7 @@ public:
: m_object(o), m_function(f) { }
private:
- virtual void fired() { (m_object->*m_function)(this); }
+ virtual void fired() OVERRIDE { (m_object->*m_function)(this); }
TimerFiredClass* m_object;
TimerFiredFunction m_function;
@@ -127,7 +127,7 @@ inline bool TimerBase::isActive() const
}
template <typename TimerFiredClass>
-class DeferrableOneShotTimer : private TimerBase {
+class DeferrableOneShotTimer FINAL : private TimerBase {
public:
typedef void (TimerFiredClass::*TimerFiredFunction)(DeferrableOneShotTimer*);
@@ -156,7 +156,7 @@ public:
using TimerBase::isActive;
private:
- virtual void fired()
+ virtual void fired() OVERRIDE
{
if (m_shouldRestartWhenTimerFires) {
m_shouldRestartWhenTimerFires = false;
« no previous file with comments | « Source/platform/SharedTimer.h ('k') | Source/platform/animation/AnimationValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698