OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 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" | |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo rmSupport.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebKitPlatfo rmSupport.h" |
13 #include "webkit/glue/resource_loader_bridge.h" | 14 #include "webkit/glue/resource_loader_bridge.h" |
14 #include "webkit/glue/webkit_glue_export.h" | 15 #include "webkit/glue/webkit_glue_export.h" |
15 | 16 |
16 #if defined(OS_WIN) | 17 #if defined(OS_WIN) |
17 #include "webkit/glue/webthemeengine_impl_win.h" | 18 #include "webkit/glue/webthemeengine_impl_win.h" |
18 #elif defined(OS_MACOSX) | 19 #elif defined(OS_MACOSX) |
19 #include "webkit/glue/webthemeengine_impl_mac.h" | 20 #include "webkit/glue/webthemeengine_impl_mac.h" |
20 #elif defined(OS_POSIX) | 21 #elif defined(OS_POSIX) |
21 #include "webkit/glue/webthemeengine_impl_linux.h" | 22 #include "webkit/glue/webthemeengine_impl_linux.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 virtual double currentTime(); | 91 virtual double currentTime(); |
91 virtual double monotonicallyIncreasingTime(); | 92 virtual double monotonicallyIncreasingTime(); |
92 virtual void cryptographicallyRandomValues( | 93 virtual void cryptographicallyRandomValues( |
93 unsigned char* buffer, size_t length); | 94 unsigned char* buffer, size_t length); |
94 virtual void setSharedTimerFiredFunction(void (*func)()); | 95 virtual void setSharedTimerFiredFunction(void (*func)()); |
95 virtual void setSharedTimerFireInterval(double interval_seconds); | 96 virtual void setSharedTimerFireInterval(double interval_seconds); |
96 virtual void stopSharedTimer(); | 97 virtual void stopSharedTimer(); |
97 virtual void callOnMainThread(void (*func)(void*), void* context); | 98 virtual void callOnMainThread(void (*func)(void*), void* context); |
98 virtual WebKit::WebThread* createThread(const char* name); | 99 virtual WebKit::WebThread* createThread(const char* name); |
99 virtual WebKit::WebThread* currentThread(); | 100 virtual WebKit::WebThread* currentThread(); |
101 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D(); | |
Ken Russell (switch to Gerrit)
2012/01/19 02:05:20
Since your goal is to remove this variant anyway,
piman
2012/01/19 02:16:37
The reason is that if I just define the 3-params o
| |
102 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( | |
103 WebKit::WebGraphicsContext3D::Attributes attributes, | |
104 WebKit::WebView* web_view, | |
105 bool render_to_web_view); | |
100 | 106 |
101 | 107 |
102 // Embedder functions. The following are not implemented by the glue layer and | 108 // Embedder functions. The following are not implemented by the glue layer and |
103 // need to be specialized by the embedder. | 109 // need to be specialized by the embedder. |
104 | 110 |
105 // Gets a localized string given a message id. Returns an empty string if the | 111 // Gets a localized string given a message id. Returns an empty string if the |
106 // message id is not found. | 112 // message id is not found. |
107 virtual string16 GetLocalizedString(int message_id) = 0; | 113 virtual string16 GetLocalizedString(int message_id) = 0; |
108 | 114 |
109 // Returns the raw data for a resource. This resource must have been | 115 // Returns the raw data for a resource. This resource must have been |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 void (*shared_timer_func_)(); | 147 void (*shared_timer_func_)(); |
142 double shared_timer_fire_time_; | 148 double shared_timer_fire_time_; |
143 int shared_timer_suspended_; // counter | 149 int shared_timer_suspended_; // counter |
144 WebThemeEngineImpl theme_engine_; | 150 WebThemeEngineImpl theme_engine_; |
145 base::ThreadLocalStorage::Slot current_thread_slot_; | 151 base::ThreadLocalStorage::Slot current_thread_slot_; |
146 }; | 152 }; |
147 | 153 |
148 } // namespace webkit_glue | 154 } // namespace webkit_glue |
149 | 155 |
150 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 156 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
OLD | NEW |