| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 std::wstring DumpDocumentText(WebKit::WebFrame* web_frame); | 51 std::wstring DumpDocumentText(WebKit::WebFrame* web_frame); |
| 52 | 52 |
| 53 // Returns the text of the document element and optionally its child frames. | 53 // Returns the text of the document element and optionally its child frames. |
| 54 // If recursive is false, this is equivalent to DumpDocumentText followed by | 54 // If recursive is false, this is equivalent to DumpDocumentText followed by |
| 55 // a newline. If recursive is true, it recursively dumps all frames as text. | 55 // a newline. If recursive is true, it recursively dumps all frames as text. |
| 56 std::wstring DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); | 56 std::wstring DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); |
| 57 | 57 |
| 58 // Returns the renderer's description of its tree (its externalRepresentation). | 58 // Returns the renderer's description of its tree (its externalRepresentation). |
| 59 std::wstring DumpRenderer(WebKit::WebFrame* web_frame); | 59 std::wstring DumpRenderer(WebKit::WebFrame* web_frame); |
| 60 | 60 |
| 61 // Fill the value of counter in the element specified by the id into |
| 62 // counter_value. Return false when the specified id doesn't exist. |
| 63 bool CounterValueForElementById(WebKit::WebFrame* web_frame, |
| 64 const std::string& id, |
| 65 std::wstring* counter_value); |
| 66 |
| 61 // Returns a dump of the scroll position of the webframe. | 67 // Returns a dump of the scroll position of the webframe. |
| 62 std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive
); | 68 std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive
); |
| 63 | 69 |
| 64 // Returns a dump of the given history state suitable for implementing the | 70 // Returns a dump of the given history state suitable for implementing the |
| 65 // dumpBackForwardList command of the layoutTestController. | 71 // dumpBackForwardList command of the layoutTestController. |
| 66 std::wstring DumpHistoryState(const std::string& history_state, int indent, | 72 std::wstring DumpHistoryState(const std::string& history_state, int indent, |
| 67 bool is_current); | 73 bool is_current); |
| 68 | 74 |
| 69 // Cleans up state left over from the previous test run. | 75 // Cleans up state left over from the previous test run. |
| 70 void ResetBeforeTestRun(WebKit::WebView* view); | 76 void ResetBeforeTestRun(WebKit::WebView* view); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 238 |
| 233 // Enable or disable the disk cache. Used for debugging. | 239 // Enable or disable the disk cache. Used for debugging. |
| 234 void SetCacheMode(bool enabled); | 240 void SetCacheMode(bool enabled); |
| 235 | 241 |
| 236 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 242 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
| 237 | 243 |
| 238 | 244 |
| 239 } // namespace webkit_glue | 245 } // namespace webkit_glue |
| 240 | 246 |
| 241 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 247 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
| OLD | NEW |