OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <windows.h> | 11 #include <windows.h> |
12 #endif | 12 #endif |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "app/clipboard/clipboard.h" | 17 #include "app/clipboard/clipboard.h" |
18 #include "base/file_path.h" | 18 #include "base/file_path.h" |
19 #include "base/platform_file.h" | 19 #include "base/platform_file.h" |
20 #include "base/string16.h" | 20 #include "base/string16.h" |
21 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" |
22 #include "third_party/WebKit/WebKit/chromium/public/WebFileError.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebFileError.h" |
23 | 23 |
24 class GURL; | 24 class GURL; |
25 class SkBitmap; | 25 class SkBitmap; |
26 struct WebPluginInfo; | |
27 | 26 |
28 namespace base { | 27 namespace base { |
29 class StringPiece; | 28 class StringPiece; |
30 } | 29 } |
31 | 30 |
32 namespace skia { | 31 namespace skia { |
33 class PlatformCanvas; | 32 class PlatformCanvas; |
34 } | 33 } |
35 | 34 |
36 namespace WebKit { | 35 namespace WebKit { |
37 class WebFrame; | 36 class WebFrame; |
38 class WebString; | 37 class WebString; |
39 class WebView; | 38 class WebView; |
40 } | 39 } |
41 | 40 |
| 41 namespace webkit { |
| 42 namespace npapi { |
| 43 struct WebPluginInfo; |
| 44 } |
| 45 } |
| 46 |
42 namespace webkit_glue { | 47 namespace webkit_glue { |
43 | 48 |
44 | 49 |
45 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- | 50 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- |
46 | 51 |
47 void SetJavaScriptFlags(const std::string& flags); | 52 void SetJavaScriptFlags(const std::string& flags); |
48 | 53 |
49 // Turn on the logging for notImplemented() calls from WebCore. | 54 // Turn on the logging for notImplemented() calls from WebCore. |
50 void EnableWebCoreNotImplementedLogging(); | 55 void EnableWebCoreNotImplementedLogging(); |
51 | 56 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Path is an output parameter to receive the path. | 223 // Path is an output parameter to receive the path. |
219 // Returns true if successful, false otherwise. | 224 // Returns true if successful, false otherwise. |
220 bool GetApplicationDirectory(FilePath* path); | 225 bool GetApplicationDirectory(FilePath* path); |
221 | 226 |
222 // Gets the directory where the launching executable resides on disk. | 227 // Gets the directory where the launching executable resides on disk. |
223 // Path is an output parameter to receive the path. | 228 // Path is an output parameter to receive the path. |
224 // Returns true if successful, false otherwise. | 229 // Returns true if successful, false otherwise. |
225 bool GetExeDirectory(FilePath* path); | 230 bool GetExeDirectory(FilePath* path); |
226 | 231 |
227 // Embedders implement this function to return the list of plugins to Webkit. | 232 // Embedders implement this function to return the list of plugins to Webkit. |
228 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); | 233 void GetPlugins(bool refresh, |
| 234 std::vector<webkit::npapi::WebPluginInfo>* plugins); |
229 | 235 |
230 // Returns true if the plugins run in the same process as the renderer, and | 236 // Returns true if the plugins run in the same process as the renderer, and |
231 // false otherwise. | 237 // false otherwise. |
232 bool IsPluginRunningInRendererProcess(); | 238 bool IsPluginRunningInRendererProcess(); |
233 | 239 |
234 // Returns a bool indicating if the Null plugin should be enabled or not. | 240 // Returns a bool indicating if the Null plugin should be enabled or not. |
235 bool IsDefaultPluginEnabled(); | 241 bool IsDefaultPluginEnabled(); |
236 | 242 |
237 // Returns true if the protocol implemented to serve |url| supports features | 243 // Returns true if the protocol implemented to serve |url| supports features |
238 // required by the media engine. | 244 // required by the media engine. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 306 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
301 size_t* output_length); | 307 size_t* output_length); |
302 #endif | 308 #endif |
303 | 309 |
304 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 310 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
305 | 311 |
306 | 312 |
307 } // namespace webkit_glue | 313 } // namespace webkit_glue |
308 | 314 |
309 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 315 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |