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_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
6 #define MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 6 #define MOJO_SERVICES_HTML_VIEWER_BLINK_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" |
11 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
12 #include "cc/blink/web_compositor_support_impl.h" | 12 #include "cc/blink/web_compositor_support_impl.h" |
13 #include "mojo/services/html_viewer/webmimeregistry_impl.h" | 13 #include "mojo/services/html_viewer/webmimeregistry_impl.h" |
14 #include "mojo/services/html_viewer/webthemeengine_impl.h" | 14 #include "mojo/services/html_viewer/webthemeengine_impl.h" |
15 #include "third_party/WebKit/public/platform/Platform.h" | 15 #include "third_party/WebKit/public/platform/Platform.h" |
16 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h" | 16 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h" |
17 | 17 |
18 namespace mojo { | 18 namespace html_viewer { |
19 | 19 |
20 class BlinkPlatformImpl : public blink::Platform { | 20 class BlinkPlatformImpl : public blink::Platform { |
21 public: | 21 public: |
22 explicit BlinkPlatformImpl(); | 22 explicit BlinkPlatformImpl(); |
23 virtual ~BlinkPlatformImpl(); | 23 virtual ~BlinkPlatformImpl(); |
24 | 24 |
25 // blink::Platform methods: | 25 // blink::Platform methods: |
26 virtual blink::WebMimeRegistry* mimeRegistry(); | 26 virtual blink::WebMimeRegistry* mimeRegistry(); |
27 virtual blink::WebThemeEngine* themeEngine(); | 27 virtual blink::WebThemeEngine* themeEngine(); |
28 virtual blink::WebString defaultLocale(); | 28 virtual blink::WebString defaultLocale(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 int shared_timer_suspended_; // counter | 72 int shared_timer_suspended_; // counter |
73 base::ThreadLocalStorage::Slot current_thread_slot_; | 73 base::ThreadLocalStorage::Slot current_thread_slot_; |
74 cc_blink::WebCompositorSupportImpl compositor_support_; | 74 cc_blink::WebCompositorSupportImpl compositor_support_; |
75 WebThemeEngineImpl theme_engine_; | 75 WebThemeEngineImpl theme_engine_; |
76 WebMimeRegistryImpl mime_registry_; | 76 WebMimeRegistryImpl mime_registry_; |
77 blink::WebScrollbarBehavior scrollbar_behavior_; | 77 blink::WebScrollbarBehavior scrollbar_behavior_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); | 79 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace mojo | 82 } // namespace html_viewer |
83 | 83 |
84 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ | 84 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |