diff options
author | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-06 04:41:45 +0000 |
---|---|---|
committer | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-06 04:41:45 +0000 |
commit | 2bbfe306530ebcc8dc305b908e9910baa2407d35 (patch) | |
tree | 2058daa7d13f71861e33cd792a588ffe879669ee /webkit/glue/webkit_glue.h | |
parent | 649e12c3f4178d0af6d22707d469eb09237dbe75 (diff) | |
download | chromium_src-2bbfe306530ebcc8dc305b908e9910baa2407d35.zip chromium_src-2bbfe306530ebcc8dc305b908e9910baa2407d35.tar.gz chromium_src-2bbfe306530ebcc8dc305b908e9910baa2407d35.tar.bz2 |
Add pageNumberForElementById for chromium.
The WebKit side change was done in
https://bugs.webkit.org/show_bug.cgi?id=34471
BUG=34219
TEST=layout tests
Review URL: http://codereview.chromium.org/574002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38298 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.h')
-rw-r--r-- | webkit/glue/webkit_glue.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h index 026b47f..2ab408a 100644 --- a/webkit/glue/webkit_glue.h +++ b/webkit/glue/webkit_glue.h @@ -64,6 +64,12 @@ bool CounterValueForElementById(WebKit::WebFrame* web_frame, const std::string& id, std::wstring* counter_value); +// Returns the number of page where the specified element will be put. +int PageNumberForElementById(WebKit::WebFrame* web_frame, + const std::string& id, + float page_width_in_pixels, + float page_height_in_pixels); + // Returns a dump of the scroll position of the webframe. std::wstring DumpFrameScrollPosition(WebKit::WebFrame* web_frame, bool recursive); |