Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: webkit/glue/webkit_glue.h

Issue 10546100: This one is a test specific API and can be moved to window.internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 WEBKIT_GLUE_EXPORT string16 DumpDocumentText(WebKit::WebFrame* web_frame); 49 WEBKIT_GLUE_EXPORT string16 DumpDocumentText(WebKit::WebFrame* web_frame);
50 50
51 // Returns the text of the document element and optionally its child frames. 51 // Returns the text of the document element and optionally its child frames.
52 // If recursive is false, this is equivalent to DumpDocumentText followed by 52 // If recursive is false, this is equivalent to DumpDocumentText followed by
53 // a newline. If recursive is true, it recursively dumps all frames as text. 53 // a newline. If recursive is true, it recursively dumps all frames as text.
54 string16 DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive); 54 string16 DumpFramesAsText(WebKit::WebFrame* web_frame, bool recursive);
55 55
56 // Returns the renderer's description of its tree (its externalRepresentation). 56 // Returns the renderer's description of its tree (its externalRepresentation).
57 WEBKIT_GLUE_EXPORT string16 DumpRenderer(WebKit::WebFrame* web_frame); 57 WEBKIT_GLUE_EXPORT string16 DumpRenderer(WebKit::WebFrame* web_frame);
58 58
59 // Fill the value of counter in the element specified by the id into
60 // counter_value. Return false when the specified id doesn't exist.
61 bool CounterValueForElementById(WebKit::WebFrame* web_frame,
62 const std::string& id,
63 string16* counter_value);
64
65 // Returns the number of page where the specified element will be put. 59 // Returns the number of page where the specified element will be put.
66 int PageNumberForElementById(WebKit::WebFrame* web_frame, 60 int PageNumberForElementById(WebKit::WebFrame* web_frame,
67 const std::string& id, 61 const std::string& id,
68 float page_width_in_pixels, 62 float page_width_in_pixels,
69 float page_height_in_pixels); 63 float page_height_in_pixels);
70 64
71 // Returns the number of pages to be printed. 65 // Returns the number of pages to be printed.
72 int NumberOfPages(WebKit::WebFrame* web_frame, 66 int NumberOfPages(WebKit::WebFrame* web_frame,
73 float page_width_in_pixels, 67 float page_width_in_pixels,
74 float page_height_in_pixels); 68 float page_height_in_pixels);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported( 154 WEBKIT_GLUE_EXPORT bool IsInspectorProtocolVersionSupported(
161 const std::string& version); 155 const std::string& version);
162 156
163 // Configures the URLRequest according to the referrer policy. 157 // Configures the URLRequest according to the referrer policy.
164 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy( 158 WEBKIT_GLUE_EXPORT void ConfigureURLRequestForReferrerPolicy(
165 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy); 159 net::URLRequest* request, WebKit::WebReferrerPolicy referrer_policy);
166 160
167 } // namespace webkit_glue 161 } // namespace webkit_glue
168 162
169 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ 163 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webkit_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698