| 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_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ | 5 #ifndef SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ |
| 6 #define SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ | 6 #define SKY_ENGINE_TESTING_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 // blink::Platform methods: | 25 // blink::Platform methods: |
| 26 virtual blink::WebUnitTestSupport* unitTestSupport(); | 26 virtual blink::WebUnitTestSupport* unitTestSupport(); |
| 27 virtual blink::WebMimeRegistry* mimeRegistry(); | 27 virtual blink::WebMimeRegistry* mimeRegistry(); |
| 28 virtual blink::WebThemeEngine* themeEngine(); | 28 virtual blink::WebThemeEngine* themeEngine(); |
| 29 virtual blink::WebString defaultLocale(); | 29 virtual blink::WebString defaultLocale(); |
| 30 virtual double currentTime(); | 30 virtual double currentTime(); |
| 31 virtual double monotonicallyIncreasingTime(); | 31 virtual double monotonicallyIncreasingTime(); |
| 32 virtual void setSharedTimerFiredFunction(void (*func)()); | 32 virtual void setSharedTimerFiredFunction(void (*func)()); |
| 33 virtual void setSharedTimerFireInterval(double interval_seconds); | 33 virtual void setSharedTimerFireInterval(double interval_seconds); |
| 34 virtual void stopSharedTimer(); | 34 virtual void stopSharedTimer(); |
| 35 virtual void callOnMainThread(void (*func)(void*), void* context); | |
| 36 virtual blink::WebData parseDataURL( | 35 virtual blink::WebData parseDataURL( |
| 37 const blink::WebURL& url, blink::WebString& mime_type, | 36 const blink::WebURL& url, blink::WebString& mime_type, |
| 38 blink::WebString& charset); | 37 blink::WebString& charset); |
| 39 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); | 38 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); |
| 40 virtual const unsigned char* getTraceCategoryEnabledFlag( | 39 virtual const unsigned char* getTraceCategoryEnabledFlag( |
| 41 const char* category_name); | 40 const char* category_name); |
| 42 | 41 |
| 43 private: | 42 private: |
| 44 void SuspendSharedTimer(); | 43 void SuspendSharedTimer(); |
| 45 void ResumeSharedTimer(); | 44 void ResumeSharedTimer(); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 59 WebMimeRegistryImpl mime_registry_; | 58 WebMimeRegistryImpl mime_registry_; |
| 60 WebUnitTestSupportImpl unit_test_support_; | 59 WebUnitTestSupportImpl unit_test_support_; |
| 61 blink::WebScrollbarBehavior scrollbar_behavior_; | 60 blink::WebScrollbarBehavior scrollbar_behavior_; |
| 62 | 61 |
| 63 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); | 62 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 } // namespace sky | 65 } // namespace sky |
| 67 | 66 |
| 68 #endif // SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ | 67 #endif // SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ |
| OLD | NEW |