| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace webkit_glue { | 47 namespace webkit_glue { |
| 48 | 48 |
| 49 | 49 |
| 50 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- | 50 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- |
| 51 | 51 |
| 52 void SetJavaScriptFlags(const std::string& flags); | 52 void SetJavaScriptFlags(const std::string& flags); |
| 53 | 53 |
| 54 // Turn on the logging for notImplemented() calls from WebCore. | 54 // Turn on logging for flags in the provided comma delimited list. |
| 55 void EnableWebCoreNotImplementedLogging(); | 55 void EnableWebCoreLogChannels(const std::string& channels); |
| 56 | 56 |
| 57 // Returns the text of the document element. | 57 // Returns the text of the document element. |
| 58 string16 DumpDocumentText(WebKit::WebFrame* web_frame); | 58 string16 DumpDocumentText(WebKit::WebFrame* web_frame); |
| 59 | 59 |
| 60 // Returns the text of the document element and optionally its child frames. | 60 // Returns the text of the document element and optionally its child frames. |
| 61 // If recursive is false, this is equivalent to DumpDocumentText followed by | 61 // If recursive is false, this is equivalent to DumpDocumentText followed by |
| 62 // a newline. If recursive is true, it recursively dumps all frames as text. | 62 // a newline. If recursive is true, it recursively dumps all frames as text. |
| 63 string16 DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); | 63 string16 DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); |
| 64 | 64 |
| 65 // Returns the renderer's description of its tree (its externalRepresentation). | 65 // Returns the renderer's description of its tree (its externalRepresentation). |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 304 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
| 305 size_t* output_length); | 305 size_t* output_length); |
| 306 #endif | 306 #endif |
| 307 | 307 |
| 308 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 308 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
| 309 | 309 |
| 310 | 310 |
| 311 } // namespace webkit_glue | 311 } // namespace webkit_glue |
| 312 | 312 |
| 313 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 313 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |