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

Side by Side Diff: components/html_viewer/blink_platform_impl.h

Issue 1343303003: Revert of Mandoline: Add WebGL support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « components/html_viewer/DEPS ('k') | components/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 COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 6 #define COMPONENTS_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/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"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual blink::WebThread* currentThread(); 68 virtual blink::WebThread* currentThread();
69 virtual void yieldCurrentThread(); 69 virtual void yieldCurrentThread();
70 virtual blink::WebWaitableEvent* createWaitableEvent( 70 virtual blink::WebWaitableEvent* createWaitableEvent(
71 blink::WebWaitableEvent::ResetPolicy policy, 71 blink::WebWaitableEvent::ResetPolicy policy,
72 blink::WebWaitableEvent::InitialState state); 72 blink::WebWaitableEvent::InitialState state);
73 virtual blink::WebWaitableEvent* waitMultipleEvents( 73 virtual blink::WebWaitableEvent* waitMultipleEvents(
74 const blink::WebVector<blink::WebWaitableEvent*>& events); 74 const blink::WebVector<blink::WebWaitableEvent*>& events);
75 virtual blink::WebScrollbarBehavior* scrollbarBehavior(); 75 virtual blink::WebScrollbarBehavior* scrollbarBehavior();
76 virtual const unsigned char* getTraceCategoryEnabledFlag( 76 virtual const unsigned char* getTraceCategoryEnabledFlag(
77 const char* category_name); 77 const char* category_name);
78 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
79 const blink::WebGraphicsContext3D::Attributes& attributes,
80 blink::WebGraphicsContext3D* share_context);
81 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
82 const blink::WebGraphicsContext3D::Attributes& attributes,
83 blink::WebGraphicsContext3D* share_context,
84 blink::WebGLInfo* gl_info);
85 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
86 const blink::WebGraphicsContext3D::Attributes& attributes);
87 virtual blink::WebGraphicsContext3DProvider*
88 createSharedOffscreenGraphicsContext3DProvider();
89 virtual blink::WebData loadResource(const char* name); 78 virtual blink::WebData loadResource(const char* name);
90 virtual blink::WebGestureCurve* createFlingAnimationCurve( 79 virtual blink::WebGestureCurve* createFlingAnimationCurve(
91 blink::WebGestureDevice device_source, 80 blink::WebGestureDevice device_source,
92 const blink::WebFloatPoint& velocity, 81 const blink::WebFloatPoint& velocity,
93 const blink::WebSize& cumulative_scroll); 82 const blink::WebSize& cumulative_scroll);
94 virtual blink::WebCrypto* crypto(); 83 virtual blink::WebCrypto* crypto();
95 virtual blink::WebNotificationManager* notificationManager(); 84 virtual blink::WebNotificationManager* notificationManager();
96 85
97 private: 86 private:
98 void UpdateWebThreadTLS(blink::WebThread* thread); 87 void UpdateWebThreadTLS(blink::WebThread* thread);
99 88
100 static void DestroyCurrentThread(void*); 89 static void DestroyCurrentThread(void*);
101 90
102 mojo::ApplicationImpl* app_;
103 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 91 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
104 scoped_ptr<scheduler::WebThreadImplForRendererScheduler> main_thread_; 92 scoped_ptr<scheduler::WebThreadImplForRendererScheduler> main_thread_;
105 base::ThreadLocalStorage::Slot current_thread_slot_; 93 base::ThreadLocalStorage::Slot current_thread_slot_;
106 cc_blink::WebCompositorSupportImpl compositor_support_; 94 cc_blink::WebCompositorSupportImpl compositor_support_;
107 WebThemeEngineImpl theme_engine_; 95 WebThemeEngineImpl theme_engine_;
108 WebMimeRegistryImpl mime_registry_; 96 WebMimeRegistryImpl mime_registry_;
109 webcrypto::WebCryptoImpl web_crypto_; 97 webcrypto::WebCryptoImpl web_crypto_;
110 WebNotificationManagerImpl web_notification_manager_; 98 WebNotificationManagerImpl web_notification_manager_;
111 blink::WebScrollbarBehavior scrollbar_behavior_; 99 blink::WebScrollbarBehavior scrollbar_behavior_;
112 mojo::WebSocketFactoryPtr web_socket_factory_; 100 mojo::WebSocketFactoryPtr web_socket_factory_;
113 mojo::URLLoaderFactoryPtr url_loader_factory_; 101 mojo::URLLoaderFactoryPtr url_loader_factory_;
114 MockWebBlobRegistryImpl blob_registry_; 102 MockWebBlobRegistryImpl blob_registry_;
115 scoped_ptr<WebCookieJarImpl> cookie_jar_; 103 scoped_ptr<WebCookieJarImpl> cookie_jar_;
116 scoped_ptr<WebClipboardImpl> clipboard_; 104 scoped_ptr<WebClipboardImpl> clipboard_;
117 105
118 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl); 106 DISALLOW_COPY_AND_ASSIGN(BlinkPlatformImpl);
119 }; 107 };
120 108
121 } // namespace html_viewer 109 } // namespace html_viewer
122 110
123 #endif // COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_ 111 #endif // COMPONENTS_HTML_VIEWER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « components/html_viewer/DEPS ('k') | components/html_viewer/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698