| 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) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 class PlatformCanvas; | 32 class PlatformCanvas; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace WebKit { | 35 namespace WebKit { |
| 36 class WebFrame; | 36 class WebFrame; |
| 37 class WebString; | 37 class WebString; |
| 38 class WebView; | 38 class WebView; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace webkit { | 41 namespace webkit { |
| 42 namespace npapi { | |
| 43 struct WebPluginInfo; | 42 struct WebPluginInfo; |
| 44 } | 43 } |
| 45 } | |
| 46 | 44 |
| 47 namespace webkit_glue { | 45 namespace webkit_glue { |
| 48 | 46 |
| 49 | 47 |
| 50 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- | 48 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- |
| 51 | 49 |
| 52 void SetJavaScriptFlags(const std::string& flags); | 50 void SetJavaScriptFlags(const std::string& flags); |
| 53 | 51 |
| 54 // Turn on logging for flags in the provided comma delimited list. | 52 // Turn on logging for flags in the provided comma delimited list. |
| 55 void EnableWebCoreLogChannels(const std::string& channels); | 53 void EnableWebCoreLogChannels(const std::string& channels); |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 201 |
| 204 // Get a sequence number which uniquely identifies clipboard state. | 202 // Get a sequence number which uniquely identifies clipboard state. |
| 205 uint64 ClipboardGetSequenceNumber(); | 203 uint64 ClipboardGetSequenceNumber(); |
| 206 | 204 |
| 207 // Reads filenames from the clipboard, if available. | 205 // Reads filenames from the clipboard, if available. |
| 208 bool ClipboardReadFilenames(ui::Clipboard::Buffer buffer, | 206 bool ClipboardReadFilenames(ui::Clipboard::Buffer buffer, |
| 209 std::vector<string16>* filenames); | 207 std::vector<string16>* filenames); |
| 210 | 208 |
| 211 // Embedders implement this function to return the list of plugins to Webkit. | 209 // Embedders implement this function to return the list of plugins to Webkit. |
| 212 void GetPlugins(bool refresh, | 210 void GetPlugins(bool refresh, |
| 213 std::vector<webkit::npapi::WebPluginInfo>* plugins); | 211 std::vector<webkit::WebPluginInfo>* plugins); |
| 214 | 212 |
| 215 // Returns true if the protocol implemented to serve |url| supports features | 213 // Returns true if the protocol implemented to serve |url| supports features |
| 216 // required by the media engine. | 214 // required by the media engine. |
| 217 bool IsProtocolSupportedForMedia(const GURL& url); | 215 bool IsProtocolSupportedForMedia(const GURL& url); |
| 218 | 216 |
| 219 // Resolves the proxies for the url, returns true on success. | 217 // Resolves the proxies for the url, returns true on success. |
| 220 bool FindProxyForUrl(const GURL& url, std::string* proxy_list); | 218 bool FindProxyForUrl(const GURL& url, std::string* proxy_list); |
| 221 | 219 |
| 222 // Returns the locale that this instance of webkit is running as. This is of | 220 // Returns the locale that this instance of webkit is running as. This is of |
| 223 // the form language-country (e.g., en-US or pt-BR). | 221 // the form language-country (e.g., en-US or pt-BR). |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 264 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
| 267 size_t* output_length); | 265 size_t* output_length); |
| 268 #endif | 266 #endif |
| 269 | 267 |
| 270 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 268 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
| 271 | 269 |
| 272 | 270 |
| 273 } // namespace webkit_glue | 271 } // namespace webkit_glue |
| 274 | 272 |
| 275 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 273 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |