OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Returns the number of pages to be printed. | 65 // Returns the number of pages to be printed. |
66 int NumberOfPages(WebKit::WebFrame* web_frame, | 66 int NumberOfPages(WebKit::WebFrame* web_frame, |
67 float page_width_in_pixels, | 67 float page_width_in_pixels, |
68 float page_height_in_pixels); | 68 float page_height_in_pixels); |
69 | 69 |
70 // Returns a dump of the scroll position of the webframe. | 70 // Returns a dump of the scroll position of the webframe. |
71 string16 DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive); | 71 string16 DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive); |
72 | 72 |
73 // Returns a dump of the given history state suitable for implementing the | 73 // Returns a dump of the given history state suitable for implementing the |
74 // dumpBackForwardList command of the layoutTestController. | 74 // dumpBackForwardList command of the testRunner. |
75 WEBKIT_GLUE_EXPORT string16 DumpHistoryState(const std::string& history_state, | 75 WEBKIT_GLUE_EXPORT string16 DumpHistoryState(const std::string& history_state, |
76 int indent, | 76 int indent, |
77 bool is_current); | 77 bool is_current); |
78 | 78 |
79 // Sets the user agent. Pass true for overriding if this is a custom | 79 // Sets the user agent. Pass true for overriding if this is a custom |
80 // user agent instead of the default one (in order to turn off any browser | 80 // user agent instead of the default one (in order to turn off any browser |
81 // sniffing workarounds). This must be called before GetUserAgent() can | 81 // sniffing workarounds). This must be called before GetUserAgent() can |
82 // be called. | 82 // be called. |
83 WEBKIT_GLUE_EXPORT void SetUserAgent(const std::string& user_agent, | 83 WEBKIT_GLUE_EXPORT void SetUserAgent(const std::string& user_agent, |
84 bool overriding); | 84 bool overriding); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( | 154 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( |
155 const std::string& version); | 155 const std::string& version); |
156 | 156 |
157 // Configures the URLRequest according to the referrer policy. | 157 // Configures the URLRequest according to the referrer policy. |
158 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( | 158 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( |
159 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); | 159 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); |
160 | 160 |
161 } // namespace webkit_glue | 161 } // namespace webkit_glue |
162 | 162 |
163 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 163 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |