| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/clipboard.h" | 17 #include "base/clipboard.h" |
| 18 #include "base/file_path.h" | 18 #include "base/file_path.h" |
| 19 #include "base/string16.h" | 19 #include "base/string16.h" |
| 20 | 20 |
| 21 class GURL; | 21 class GURL; |
| 22 class SkBitmap; | 22 class SkBitmap; |
| 23 class StringPiece; | 23 class StringPiece; |
| 24 class WebView; | 24 class WebView; |
| 25 class WebFrame; | |
| 26 struct WebPluginInfo; | 25 struct WebPluginInfo; |
| 27 | 26 |
| 28 namespace WebKit { | 27 namespace WebKit { |
| 28 class WebFrame; |
| 29 class WebString; | 29 class WebString; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace webkit_glue { | 32 namespace webkit_glue { |
| 33 | 33 |
| 34 | 34 |
| 35 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- | 35 //---- BEGIN FUNCTIONS IMPLEMENTED BY WEBKIT/GLUE ----------------------------- |
| 36 | 36 |
| 37 void SetJavaScriptFlags(const std::wstring& flags); | 37 void SetJavaScriptFlags(const std::wstring& flags); |
| 38 | 38 |
| 39 // Turn on the logging for notImplemented() calls from WebCore. | 39 // Turn on the logging for notImplemented() calls from WebCore. |
| 40 void EnableWebCoreNotImplementedLogging(); | 40 void EnableWebCoreNotImplementedLogging(); |
| 41 | 41 |
| 42 // Returns the text of the document element. | 42 // Returns the text of the document element. |
| 43 std::wstring DumpDocumentText(WebFrame* web_frame); | 43 std::wstring DumpDocumentText(WebKit::WebFrame* web_frame); |
| 44 | 44 |
| 45 // Returns the text of the document element and optionally its child frames. | 45 // Returns the text of the document element and optionally its child frames. |
| 46 // If recursive is false, this is equivalent to DumpDocumentText followed by | 46 // If recursive is false, this is equivalent to DumpDocumentText followed by |
| 47 // a newline. If recursive is true, it recursively dumps all frames as text. | 47 // a newline. If recursive is true, it recursively dumps all frames as text. |
| 48 std::wstring DumpFramesAsText(WebFrame* web_frame, bool recursive); | 48 std::wstring DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); |
| 49 | 49 |
| 50 // Returns the renderer's description of its tree (its externalRepresentation). | 50 // Returns the renderer's description of its tree (its externalRepresentation). |
| 51 std::wstring DumpRenderer(WebFrame* web_frame); | 51 std::wstring DumpRenderer(WebKit::WebFrame* web_frame); |
| 52 | 52 |
| 53 // Returns a dump of the scroll position of the webframe. | 53 // Returns a dump of the scroll position of the webframe. |
| 54 std::wstring DumpFrameScrollPosition(WebFrame* web_frame, bool recursive); | 54 std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive
); |
| 55 | 55 |
| 56 // Returns a dump of the given history state suitable for implementing the | 56 // Returns a dump of the given history state suitable for implementing the |
| 57 // dumpBackForwardList command of the layoutTestController. | 57 // dumpBackForwardList command of the layoutTestController. |
| 58 std::wstring DumpHistoryState(const std::string& history_state, int indent, | 58 std::wstring DumpHistoryState(const std::string& history_state, int indent, |
| 59 bool is_current); | 59 bool is_current); |
| 60 | 60 |
| 61 // Cleans up state left over from the previous test run. | 61 // Cleans up state left over from the previous test run. |
| 62 void ResetBeforeTestRun(WebView* view); | 62 void ResetBeforeTestRun(WebView* view); |
| 63 | 63 |
| 64 // Returns the WebKit version (major.minor). | 64 // Returns the WebKit version (major.minor). |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 // Enable or disable the disk cache. Used for debugging. | 205 // Enable or disable the disk cache. Used for debugging. |
| 206 void SetCacheMode(bool enabled); | 206 void SetCacheMode(bool enabled); |
| 207 | 207 |
| 208 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 208 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
| 209 | 209 |
| 210 | 210 |
| 211 } // namespace webkit_glue | 211 } // namespace webkit_glue |
| 212 | 212 |
| 213 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 213 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |