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

Unified Diff: sky/engine/testing/platform/platform_impl.h

Issue 886263002: Move SharedTimer implementation into sky/engine (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: style Created 5 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 | « sky/engine/platform/SharedTimer.cpp ('k') | sky/engine/testing/platform/platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/testing/platform/platform_impl.h
diff --git a/sky/engine/testing/platform/platform_impl.h b/sky/engine/testing/platform/platform_impl.h
index 0f529211744d0d08ab6eaa728c45741337d0461d..e537599d55d5f7937e5964cfbc3c94637f6d213e 100644
--- a/sky/engine/testing/platform/platform_impl.h
+++ b/sky/engine/testing/platform/platform_impl.h
@@ -22,27 +22,8 @@ class PlatformImpl : public blink::Platform {
// blink::Platform methods:
virtual blink::WebUnitTestSupport* unitTestSupport();
virtual blink::WebString defaultLocale();
- virtual double currentTime();
- virtual double monotonicallyIncreasingTime();
- virtual void setSharedTimerFiredFunction(void (*func)());
- virtual void setSharedTimerFireInterval(double interval_seconds);
- virtual void stopSharedTimer();
private:
- void SuspendSharedTimer();
- void ResumeSharedTimer();
-
- void DoTimeout() {
- if (shared_timer_func_ && !shared_timer_suspended_)
- shared_timer_func_();
- }
-
- base::MessageLoop* main_loop_;
- base::OneShotTimer<PlatformImpl> shared_timer_;
- void (*shared_timer_func_)();
- double shared_timer_fire_time_;
- bool shared_timer_fire_time_was_set_while_suspended_;
- int shared_timer_suspended_; // counter
WebUnitTestSupportImpl unit_test_support_;
DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
« no previous file with comments | « sky/engine/platform/SharedTimer.cpp ('k') | sky/engine/testing/platform/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698