| 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 MOJO_EXAMPLE_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef MOJO_EXAMPLE_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
| 6 #define MOJO_EXAMPLE_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 6 #define MOJO_EXAMPLE_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/threading/thread_local_storage.h" | 9 #include "base/threading/thread_local_storage.h" |
| 10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
| 11 #include "mojo/examples/html_viewer/webmimeregistry_impl.h" | 11 #include "mojo/examples/html_viewer/webmimeregistry_impl.h" |
| 12 #include "mojo/examples/html_viewer/webthemeengine_impl.h" |
| 12 #include "mojo/services/public/interfaces/network/network_service.mojom.h" | 13 #include "mojo/services/public/interfaces/network/network_service.mojom.h" |
| 13 #include "third_party/WebKit/public/platform/Platform.h" | 14 #include "third_party/WebKit/public/platform/Platform.h" |
| 14 #include "third_party/WebKit/public/platform/WebThemeEngine.h" | |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 class ApplicationImpl; | 17 class ApplicationImpl; |
| 18 | 18 |
| 19 namespace examples { | 19 namespace examples { |
| 20 | 20 |
| 21 class BlinkPlatformImpl : public blink::Platform { | 21 class BlinkPlatformImpl : public blink::Platform { |
| 22 public: | 22 public: |
| 23 explicit BlinkPlatformImpl(ApplicationImpl* app); | 23 explicit BlinkPlatformImpl(ApplicationImpl* app); |
| 24 virtual ~BlinkPlatformImpl(); | 24 virtual ~BlinkPlatformImpl(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static void DestroyCurrentThread(void*); | 61 static void DestroyCurrentThread(void*); |
| 62 | 62 |
| 63 NetworkServicePtr network_service_; | 63 NetworkServicePtr network_service_; |
| 64 base::MessageLoop* main_loop_; | 64 base::MessageLoop* main_loop_; |
| 65 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; | 65 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; |
| 66 void (*shared_timer_func_)(); | 66 void (*shared_timer_func_)(); |
| 67 double shared_timer_fire_time_; | 67 double shared_timer_fire_time_; |
| 68 bool shared_timer_fire_time_was_set_while_suspended_; | 68 bool shared_timer_fire_time_was_set_while_suspended_; |
| 69 int shared_timer_suspended_; // counter | 69 int shared_timer_suspended_; // counter |
| 70 base::ThreadLocalStorage::Slot current_thread_slot_; | 70 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 71 blink::WebThemeEngine dummy_theme_engine_; | 71 WebThemeEngineImpl theme_engine_; |
| 72 WebMimeRegistryImpl mime_registry_; | 72 WebMimeRegistryImpl mime_registry_; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace examples | 75 } // namespace examples |
| 76 } // namespace mojo | 76 } // namespace mojo |
| 77 | 77 |
| 78 #endif // MOJO_EXAMPLE_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 78 #endif // MOJO_EXAMPLE_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |