| 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 23 matching lines...) Expand all Loading... |
| 34 virtual double currentTime(); | 34 virtual double currentTime(); |
| 35 virtual double monotonicallyIncreasingTime(); | 35 virtual double monotonicallyIncreasingTime(); |
| 36 virtual void cryptographicallyRandomValues( | 36 virtual void cryptographicallyRandomValues( |
| 37 unsigned char* buffer, size_t length); | 37 unsigned char* buffer, size_t length); |
| 38 virtual void setSharedTimerFiredFunction(void (*func)()); | 38 virtual void setSharedTimerFiredFunction(void (*func)()); |
| 39 virtual void setSharedTimerFireInterval(double interval_seconds); | 39 virtual void setSharedTimerFireInterval(double interval_seconds); |
| 40 virtual void stopSharedTimer(); | 40 virtual void stopSharedTimer(); |
| 41 virtual void callOnMainThread(void (*func)(void*), void* context); | 41 virtual void callOnMainThread(void (*func)(void*), void* context); |
| 42 virtual bool isThreadedCompositingEnabled(); | 42 virtual bool isThreadedCompositingEnabled(); |
| 43 virtual blink::WebCompositorSupport* compositorSupport(); | 43 virtual blink::WebCompositorSupport* compositorSupport(); |
| 44 virtual mojo::NetworkService* networkService(); |
| 44 virtual blink::WebURLLoader* createURLLoader(); | 45 virtual blink::WebURLLoader* createURLLoader(); |
| 45 virtual blink::WebData parseDataURL( | 46 virtual blink::WebData parseDataURL( |
| 46 const blink::WebURL& url, blink::WebString& mime_type, | 47 const blink::WebURL& url, blink::WebString& mime_type, |
| 47 blink::WebString& charset); | 48 blink::WebString& charset); |
| 48 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; | 49 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; |
| 49 virtual blink::WebWaitableEvent* createWaitableEvent(); | 50 virtual blink::WebWaitableEvent* createWaitableEvent(); |
| 50 virtual blink::WebWaitableEvent* waitMultipleEvents( | 51 virtual blink::WebWaitableEvent* waitMultipleEvents( |
| 51 const blink::WebVector<blink::WebWaitableEvent*>& events); | 52 const blink::WebVector<blink::WebWaitableEvent*>& events); |
| 52 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); | 53 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); |
| 53 virtual const unsigned char* getTraceCategoryEnabledFlag( | 54 virtual const unsigned char* getTraceCategoryEnabledFlag( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 WebThemeEngineImpl theme_engine_; | 100 WebThemeEngineImpl theme_engine_; |
| 100 WebMimeRegistryImpl mime_registry_; | 101 WebMimeRegistryImpl mime_registry_; |
| 101 blink::WebScrollbarBehavior scrollbar_behavior_; | 102 blink::WebScrollbarBehavior scrollbar_behavior_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); | 104 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace sky | 107 } // namespace sky |
| 107 | 108 |
| 108 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ | 109 #endif // SKY_VIEWER_PLATFORM_PLATFORM_IMPL_H_ |
| OLD | NEW |