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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 | 44 |
45 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- | 45 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- |
46 | 46 |
47 void SetJavaScriptFlags(const std::string& flags); | 47 void SetJavaScriptFlags(const std::string& flags); |
48 | 48 |
49 // Turn on the logging for notImplemented() calls from WebCore. | 49 // Turn on the logging for notImplemented() calls from WebCore. |
50 void EnableWebCoreNotImplementedLogging(); | 50 void EnableWebCoreNotImplementedLogging(); |
51 | 51 |
52 // Returns the text of the document element. | 52 // Returns the text of the document element. |
53 std::wstring DumpDocumentText(WebKit::WebFrame* web_frame); | 53 string16 DumpDocumentText(WebKit::WebFrame* web_frame); |
54 | 54 |
55 // Returns the text of the document element and optionally its child frames. | 55 // Returns the text of the document element and optionally its child frames. |
56 // If recursive is false, this is equivalent to DumpDocumentText followed by | 56 // If recursive is false, this is equivalent to DumpDocumentText followed by |
57 // a newline. If recursive is true, it recursively dumps all frames as text. | 57 // a newline. If recursive is true, it recursively dumps all frames as text. |
58 std::wstring DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); | 58 string16 DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); |
59 | 59 |
60 // Returns the renderer's description of its tree (its externalRepresentation). | 60 // Returns the renderer's description of its tree (its externalRepresentation). |
61 std::wstring DumpRenderer(WebKit::WebFrame* web_frame); | 61 string16 DumpRenderer(WebKit::WebFrame* web_frame); |
62 | 62 |
63 // Fill the value of counter in the element specified by the id into | 63 // Fill the value of counter in the element specified by the id into |
64 // counter_value. Return false when the specified id doesn't exist. | 64 // counter_value. Return false when the specified id doesn't exist. |
65 bool CounterValueForElementById(WebKit::WebFrame* web_frame, | 65 bool CounterValueForElementById(WebKit::WebFrame* web_frame, |
66 const std::string& id, | 66 const std::string& id, |
67 std::wstring* counter_value); | 67 std::wstring* counter_value); |
68 | 68 |
69 // Returns the number of page where the specified element will be put. | 69 // Returns the number of page where the specified element will be put. |
70 int PageNumberForElementById(WebKit::WebFrame* web_frame, | 70 int PageNumberForElementById(WebKit::WebFrame* web_frame, |
71 const std::string& id, | 71 const std::string& id, |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 291 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
292 size_t* output_length); | 292 size_t* output_length); |
293 #endif | 293 #endif |
294 | 294 |
295 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 295 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
296 | 296 |
297 | 297 |
298 } // namespace webkit_glue | 298 } // namespace webkit_glue |
299 | 299 |
300 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 300 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |