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