| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ | 5 #ifndef SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ |
| 6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ | 6 #define SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // blink::Platform methods: | 26 // blink::Platform methods: |
| 27 virtual blink::WebString defaultLocale(); | 27 virtual blink::WebString defaultLocale(); |
| 28 virtual double currentTime(); | 28 virtual double currentTime(); |
| 29 virtual double monotonicallyIncreasingTime(); | 29 virtual double monotonicallyIncreasingTime(); |
| 30 virtual void setSharedTimerFiredFunction(void (*func)()); | 30 virtual void setSharedTimerFiredFunction(void (*func)()); |
| 31 virtual void setSharedTimerFireInterval(double interval_seconds); | 31 virtual void setSharedTimerFireInterval(double interval_seconds); |
| 32 virtual void stopSharedTimer(); | 32 virtual void stopSharedTimer(); |
| 33 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner(); | 33 virtual base::SingleThreadTaskRunner* mainThreadTaskRunner(); |
| 34 virtual bool isThreadedCompositingEnabled(); | 34 virtual bool isThreadedCompositingEnabled(); |
| 35 virtual blink::WebCompositorSupport* compositorSupport(); | |
| 36 virtual mojo::NetworkService* networkService(); | 35 virtual mojo::NetworkService* networkService(); |
| 37 virtual blink::WebURLLoader* createURLLoader(); | 36 virtual blink::WebURLLoader* createURLLoader(); |
| 38 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; | 37 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; |
| 39 virtual const unsigned char* getTraceCategoryEnabledFlag( | 38 virtual const unsigned char* getTraceCategoryEnabledFlag( |
| 40 const char* category_name); | 39 const char* category_name); |
| 41 virtual long* getTraceSamplingState(const unsigned thread_bucket); | 40 virtual long* getTraceSamplingState(const unsigned thread_bucket); |
| 42 virtual TraceEventHandle addTraceEvent( | 41 virtual TraceEventHandle addTraceEvent( |
| 43 char phase, | 42 char phase, |
| 44 const unsigned char* category_group_enabled, | 43 const unsigned char* category_group_enabled, |
| 45 const char* name, | 44 const char* name, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 double shared_timer_fire_time_; | 81 double shared_timer_fire_time_; |
| 83 bool shared_timer_fire_time_was_set_while_suspended_; | 82 bool shared_timer_fire_time_was_set_while_suspended_; |
| 84 int shared_timer_suspended_; // counter | 83 int shared_timer_suspended_; // counter |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); | 85 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace sky | 88 } // namespace sky |
| 90 | 89 |
| 91 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ | 90 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ |
| OLD | NEW |