| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 // Path is an output parameter to receive the path. | 219 // Path is an output parameter to receive the path. |
| 215 // Returns true if successful, false otherwise. | 220 // Returns true if successful, false otherwise. |
| 216 bool GetApplicationDirectory(FilePath* path); | 221 bool GetApplicationDirectory(FilePath* path); |
| 217 | 222 |
| 218 // Gets the directory where the launching executable resides on disk. | 223 // Gets the directory where the launching executable resides on disk. |
| 219 // Path is an output parameter to receive the path. | 224 // Path is an output parameter to receive the path. |
| 220 // Returns true if successful, false otherwise. | 225 // Returns true if successful, false otherwise. |
| 221 bool GetExeDirectory(FilePath* path); | 226 bool GetExeDirectory(FilePath* path); |
| 222 | 227 |
| 223 // Embedders implement this function to return the list of plugins to Webkit. | 228 // Embedders implement this function to return the list of plugins to Webkit. |
| 224 void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins); | 229 void GetPlugins(bool refresh, |
| 230 std::vector<webkit::npapi::WebPluginInfo>* plugins); |
| 225 | 231 |
| 226 // Returns true if the plugins run in the same process as the renderer, and | 232 // Returns true if the plugins run in the same process as the renderer, and |
| 227 // false otherwise. | 233 // false otherwise. |
| 228 bool IsPluginRunningInRendererProcess(); | 234 bool IsPluginRunningInRendererProcess(); |
| 229 | 235 |
| 230 // Returns a bool indicating if the Null plugin should be enabled or not. | 236 // Returns a bool indicating if the Null plugin should be enabled or not. |
| 231 bool IsDefaultPluginEnabled(); | 237 bool IsDefaultPluginEnabled(); |
| 232 | 238 |
| 233 // Returns true if the protocol implemented to serve |url| supports features | 239 // Returns true if the protocol implemented to serve |url| supports features |
| 234 // required by the media engine. | 240 // required by the media engine. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 296 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
| 291 size_t* output_length); | 297 size_t* output_length); |
| 292 #endif | 298 #endif |
| 293 | 299 |
| 294 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 300 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
| 295 | 301 |
| 296 | 302 |
| 297 } // namespace webkit_glue | 303 } // namespace webkit_glue |
| 298 | 304 |
| 299 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 305 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |