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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build fix Created 4 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
Index: third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp
index 8e9fc134c752b472402b12dae52a0e4b1d77bfa9..caaf48c18b9fdd63bcc57447f17992f6e6adf551 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageTest.cpp
@@ -47,17 +47,18 @@ private:
Task* m_currentTask;
};
-class MockTimer : public Timer<SVGImageChromeClient> {
- typedef void (SVGImageChromeClient::*TimerFiredFunction)(Timer*);
+class MockTimer : public TaskRunnerTimer<SVGImageChromeClient> {
public:
+ using TimerFiredFunction = typename TaskRunnerTimer<SVGImageChromeClient>::TimerFiredFunction;
+
MockTimer(SVGImageChromeClient* o, TimerFiredFunction f)
- : Timer<SVGImageChromeClient>(o, f, &m_taskRunner)
+ : TaskRunnerTimer(&m_taskRunner, o, f)
{
}
void fire()
{
- this->Timer<SVGImageChromeClient>::fired();
+ fired();
stop();
}

Powered by Google App Engine
This is Rietveld 408576698