Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: mojo/services/html_viewer/blink_platform_impl.h

Issue 570623002: Revert "Compositor bindings for mojo html_viewer" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/services/html_viewer/DEPS ('k') | mojo/services/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
13 #include "mojo/services/html_viewer/webmimeregistry_impl.h" 12 #include "mojo/services/html_viewer/webmimeregistry_impl.h"
14 #include "mojo/services/html_viewer/webthemeengine_impl.h" 13 #include "mojo/services/html_viewer/webthemeengine_impl.h"
15 #include "mojo/services/public/interfaces/network/network_service.mojom.h" 14 #include "mojo/services/public/interfaces/network/network_service.mojom.h"
16 #include "third_party/WebKit/public/platform/Platform.h" 15 #include "third_party/WebKit/public/platform/Platform.h"
17 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h" 16 #include "third_party/WebKit/public/platform/WebScrollbarBehavior.h"
18 17
19 namespace mojo { 18 namespace mojo {
20 class ApplicationImpl; 19 class ApplicationImpl;
21 class WebCookieJarImpl; 20 class WebCookieJarImpl;
22 21
23 class BlinkPlatformImpl : public blink::Platform { 22 class BlinkPlatformImpl : public blink::Platform {
24 public: 23 public:
25 explicit BlinkPlatformImpl(ApplicationImpl* app); 24 explicit BlinkPlatformImpl(ApplicationImpl* app);
26 virtual ~BlinkPlatformImpl(); 25 virtual ~BlinkPlatformImpl();
27 26
28 // blink::Platform methods: 27 // blink::Platform methods:
29 virtual blink::WebCookieJar* cookieJar(); 28 virtual blink::WebCookieJar* cookieJar();
30 virtual blink::WebMimeRegistry* mimeRegistry(); 29 virtual blink::WebMimeRegistry* mimeRegistry();
31 virtual blink::WebThemeEngine* themeEngine(); 30 virtual blink::WebThemeEngine* themeEngine();
32 virtual blink::WebString defaultLocale(); 31 virtual blink::WebString defaultLocale();
33 virtual double currentTime(); 32 virtual double currentTime();
34 virtual double monotonicallyIncreasingTime(); 33 virtual double monotonicallyIncreasingTime();
35 virtual void cryptographicallyRandomValues( 34 virtual void cryptographicallyRandomValues(
36 unsigned char* buffer, size_t length); 35 unsigned char* buffer, size_t length);
37 virtual void setSharedTimerFiredFunction(void (*func)()); 36 virtual void setSharedTimerFiredFunction(void (*func)());
38 virtual void setSharedTimerFireInterval(double interval_seconds); 37 virtual void setSharedTimerFireInterval(double interval_seconds);
39 virtual void stopSharedTimer(); 38 virtual void stopSharedTimer();
40 virtual void callOnMainThread(void (*func)(void*), void* context); 39 virtual void callOnMainThread(void (*func)(void*), void* context);
41 virtual bool isThreadedCompositingEnabled();
42 virtual blink::WebCompositorSupport* compositorSupport();
43 virtual blink::WebURLLoader* createURLLoader(); 40 virtual blink::WebURLLoader* createURLLoader();
44 virtual blink::WebSocketHandle* createWebSocketHandle(); 41 virtual blink::WebSocketHandle* createWebSocketHandle();
45 virtual blink::WebString userAgent(); 42 virtual blink::WebString userAgent();
46 virtual blink::WebData parseDataURL( 43 virtual blink::WebData parseDataURL(
47 const blink::WebURL& url, blink::WebString& mime_type, 44 const blink::WebURL& url, blink::WebString& mime_type,
48 blink::WebString& charset); 45 blink::WebString& charset);
49 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const; 46 virtual blink::WebURLError cancelledError(const blink::WebURL& url) const;
50 virtual blink::WebThread* createThread(const char* name); 47 virtual blink::WebThread* createThread(const char* name);
51 virtual blink::WebThread* currentThread(); 48 virtual blink::WebThread* currentThread();
52 virtual blink::WebWaitableEvent* createWaitableEvent(); 49 virtual blink::WebWaitableEvent* createWaitableEvent();
(...skipping 15 matching lines...) Expand all
68 static void DestroyCurrentThread(void*); 65 static void DestroyCurrentThread(void*);
69 66
70 NetworkServicePtr network_service_; 67 NetworkServicePtr network_service_;
71 base::MessageLoop* main_loop_; 68 base::MessageLoop* main_loop_;
72 base::OneShotTimer<BlinkPlatformImpl> shared_timer_; 69 base::OneShotTimer<BlinkPlatformImpl> shared_timer_;
73 void (*shared_timer_func_)(); 70 void (*shared_timer_func_)();
74 double shared_timer_fire_time_; 71 double shared_timer_fire_time_;
75 bool shared_timer_fire_time_was_set_while_suspended_; 72 bool shared_timer_fire_time_was_set_while_suspended_;
76 int shared_timer_suspended_; // counter 73 int shared_timer_suspended_; // counter
77 base::ThreadLocalStorage::Slot current_thread_slot_; 74 base::ThreadLocalStorage::Slot current_thread_slot_;
78 cc_blink::WebCompositorSupportImpl compositor_support_;
79 WebThemeEngineImpl theme_engine_; 75 WebThemeEngineImpl theme_engine_;
80 scoped_ptr<WebCookieJarImpl> cookie_jar_; 76 scoped_ptr<WebCookieJarImpl> cookie_jar_;
81 WebMimeRegistryImpl mime_registry_; 77 WebMimeRegistryImpl mime_registry_;
82 blink::WebScrollbarBehavior scrollbar_behavior_; 78 blink::WebScrollbarBehavior scrollbar_behavior_;
83 79
84 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); 80 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl);
85 }; 81 };
86 82
87 } // namespace mojo 83 } // namespace mojo
88 84
89 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 85 #endif // MOJO_SERVICES_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/DEPS ('k') | mojo/services/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698