diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-08 18:06:44 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-08 18:06:44 +0000 |
commit | 78994ab0a043ead9b3edb4a48c7f13cc6c2aede6 (patch) | |
tree | 357ae4e0cf8bf140e616d3086b29472043aaf0e5 /app | |
parent | a7a265efd24072f9dc7b5f737ec84d5ae0553cd6 (diff) | |
download | chromium_src-78994ab0a043ead9b3edb4a48c7f13cc6c2aede6.zip chromium_src-78994ab0a043ead9b3edb4a48c7f13cc6c2aede6.tar.gz chromium_src-78994ab0a043ead9b3edb4a48c7f13cc6c2aede6.tar.bz2 |
Add the "virtual" keyword on method overrides that are missing it.
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/5648004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68606 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/hi_res_timer_manager.h | 2 | ||||
-rw-r--r-- | app/slide_animation.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/hi_res_timer_manager.h b/app/hi_res_timer_manager.h index 7eed795..7f3b87b 100644 --- a/app/hi_res_timer_manager.h +++ b/app/hi_res_timer_manager.h @@ -16,7 +16,7 @@ class HighResolutionTimerManager : public SystemMonitor::PowerObserver { virtual ~HighResolutionTimerManager(); // SystemMonitor::PowerObserver: - void OnPowerStateChange(bool on_battery_power); + virtual void OnPowerStateChange(bool on_battery_power); private: // Enable or disable the faster multimedia timer. diff --git a/app/slide_animation.h b/app/slide_animation.h index 91e64bc..d073db1 100644 --- a/app/slide_animation.h +++ b/app/slide_animation.h @@ -65,13 +65,13 @@ class SlideAnimation : public LinearAnimation { int GetSlideDuration() const { return slide_duration_; } void SetTweenType(Tween::Type tween_type) { tween_type_ = tween_type; } - double GetCurrentValue() const { return value_current_; } + virtual double GetCurrentValue() const { return value_current_; } bool IsShowing() const { return showing_; } bool IsClosing() const { return !showing_ && value_end_ < value_current_; } private: // Overridden from Animation. - void AnimateToState(double state); + virtual void AnimateToState(double state); AnimationDelegate* target_; |