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

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.h

Issue 9254035: Implement WebViewClient::createGraphicsContext3D (and support for DRT) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: also revert 118249 Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
Ken Russell (switch to Gerrit) 2012/01/19 20:31:21 Accident?
piman 2012/01/19 20:48:26 Fixed. I reverted my previous patch which bumped t
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 WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_
6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo rmSupport.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo rmSupport.h"
14 #include "webkit/glue/resource_loader_bridge.h" 13 #include "webkit/glue/resource_loader_bridge.h"
15 #include "webkit/glue/webkit_glue_export.h" 14 #include "webkit/glue/webkit_glue_export.h"
16 15
17 #if defined(OS_WIN) 16 #if defined(OS_WIN)
18 #include "webkit/glue/webthemeengine_impl_win.h" 17 #include "webkit/glue/webthemeengine_impl_win.h"
19 #elif defined(OS_MACOSX) 18 #elif defined(OS_MACOSX)
20 #include "webkit/glue/webthemeengine_impl_mac.h" 19 #include "webkit/glue/webthemeengine_impl_mac.h"
21 #elif defined(OS_POSIX) 20 #elif defined(OS_POSIX)
22 #include "webkit/glue/webthemeengine_impl_linux.h" 21 #include "webkit/glue/webthemeengine_impl_linux.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual double currentTime(); 90 virtual double currentTime();
92 virtual double monotonicallyIncreasingTime(); 91 virtual double monotonicallyIncreasingTime();
93 virtual void cryptographicallyRandomValues( 92 virtual void cryptographicallyRandomValues(
94 unsigned char* buffer, size_t length); 93 unsigned char* buffer, size_t length);
95 virtual void setSharedTimerFiredFunction(void (*func)()); 94 virtual void setSharedTimerFiredFunction(void (*func)());
96 virtual void setSharedTimerFireInterval(double interval_seconds); 95 virtual void setSharedTimerFireInterval(double interval_seconds);
97 virtual void stopSharedTimer(); 96 virtual void stopSharedTimer();
98 virtual void callOnMainThread(void (*func)(void*), void* context); 97 virtual void callOnMainThread(void (*func)(void*), void* context);
99 virtual WebKit::WebThread* createThread(const char* name); 98 virtual WebKit::WebThread* createThread(const char* name);
100 virtual WebKit::WebThread* currentThread(); 99 virtual WebKit::WebThread* currentThread();
101 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D();
102 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D(
103 WebKit::WebGraphicsContext3D::Attributes attributes,
104 WebKit::WebView* web_view,
105 bool render_to_web_view);
106 100
107 101
108 // Embedder functions. The following are not implemented by the glue layer and 102 // Embedder functions. The following are not implemented by the glue layer and
109 // need to be specialized by the embedder. 103 // need to be specialized by the embedder.
110 104
111 // Gets a localized string given a message id. Returns an empty string if the 105 // Gets a localized string given a message id. Returns an empty string if the
112 // message id is not found. 106 // message id is not found.
113 virtual string16 GetLocalizedString(int message_id) = 0; 107 virtual string16 GetLocalizedString(int message_id) = 0;
114 108
115 // Returns the raw data for a resource. This resource must have been 109 // Returns the raw data for a resource. This resource must have been
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void (*shared_timer_func_)(); 141 void (*shared_timer_func_)();
148 double shared_timer_fire_time_; 142 double shared_timer_fire_time_;
149 int shared_timer_suspended_; // counter 143 int shared_timer_suspended_; // counter
150 WebThemeEngineImpl theme_engine_; 144 WebThemeEngineImpl theme_engine_;
151 base::ThreadLocalStorage::Slot current_thread_slot_; 145 base::ThreadLocalStorage::Slot current_thread_slot_;
152 }; 146 };
153 147
154 } // namespace webkit_glue 148 } // namespace webkit_glue
155 149
156 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 150 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698