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

Unified Diff: Source/platform/UserGestureIndicator.cpp

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/TracedValue.h ('k') | Source/platform/animation/TimingFunction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/UserGestureIndicator.cpp
diff --git a/Source/platform/UserGestureIndicator.cpp b/Source/platform/UserGestureIndicator.cpp
index eb6700f3184b0d119bed48ab8ac397b3a4bf1ac0..21b3e40ed1d4e0961850f612b3c8a953cf2f9fc8 100644
--- a/Source/platform/UserGestureIndicator.cpp
+++ b/Source/platform/UserGestureIndicator.cpp
@@ -44,8 +44,8 @@ class GestureToken : public UserGestureToken {
public:
static PassRefPtr<UserGestureToken> create() { return adoptRef(new GestureToken); }
- virtual ~GestureToken() { }
- virtual bool hasGestures() const override
+ ~GestureToken() override {}
+ bool hasGestures() const override
{
// Do not enforce timeouts for gestures which spawned javascript prompts.
if (m_consumableGestures < 1 || (WTF::currentTime() - m_timestamp > (m_outOfProcess ? userGestureOutOfProcessTimeout : userGestureTimeout) && !m_javascriptPrompt))
@@ -72,7 +72,7 @@ public:
return true;
}
- virtual void setOutOfProcess() override
+ void setOutOfProcess() override
{
if (WTF::currentTime() - m_timestamp > userGestureTimeout)
return;
@@ -80,7 +80,7 @@ public:
m_outOfProcess = true;
}
- virtual void setJavascriptPrompt() override
+ void setJavascriptPrompt() override
{
if (WTF::currentTime() - m_timestamp > userGestureTimeout)
return;
« no previous file with comments | « Source/platform/TracedValue.h ('k') | Source/platform/animation/TimingFunction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698