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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 bool CounterValueForElementById(WebKit::WebFrame* web_frame, | 63 bool CounterValueForElementById(WebKit::WebFrame* web_frame, |
64 const std::string& id, | 64 const std::string& id, |
65 std::wstring* counter_value); | 65 std::wstring* counter_value); |
66 | 66 |
67 // Returns the number of page where the specified element will be put. | 67 // Returns the number of page where the specified element will be put. |
68 int PageNumberForElementById(WebKit::WebFrame* web_frame, | 68 int PageNumberForElementById(WebKit::WebFrame* web_frame, |
69 const std::string& id, | 69 const std::string& id, |
70 float page_width_in_pixels, | 70 float page_width_in_pixels, |
71 float page_height_in_pixels); | 71 float page_height_in_pixels); |
72 | 72 |
| 73 // Returns the number of pages to be printed. |
| 74 int NumberOfPages(WebKit::WebFrame* web_frame, |
| 75 float page_width_in_pixels, |
| 76 float page_height_in_pixels); |
| 77 |
73 // Returns a dump of the scroll position of the webframe. | 78 // Returns a dump of the scroll position of the webframe. |
74 std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive
); | 79 std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive
); |
75 | 80 |
76 // Returns a dump of the given history state suitable for implementing the | 81 // Returns a dump of the given history state suitable for implementing the |
77 // dumpBackForwardList command of the layoutTestController. | 82 // dumpBackForwardList command of the layoutTestController. |
78 std::wstring DumpHistoryState(const std::string& history_state, int indent, | 83 std::wstring DumpHistoryState(const std::string& history_state, int indent, |
79 bool is_current); | 84 bool is_current); |
80 | 85 |
81 // Cleans up state left over from the previous test run. | 86 // Cleans up state left over from the previous test run. |
82 void ResetBeforeTestRun(WebKit::WebView* view); | 87 void ResetBeforeTestRun(WebKit::WebView* view); |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 241 |
237 // Enable or disable the disk cache. Used for debugging. | 242 // Enable or disable the disk cache. Used for debugging. |
238 void SetCacheMode(bool enabled); | 243 void SetCacheMode(bool enabled); |
239 | 244 |
240 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 245 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
241 | 246 |
242 | 247 |
243 } // namespace webkit_glue | 248 } // namespace webkit_glue |
244 | 249 |
245 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 250 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |