diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 16:18:52 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 16:18:52 +0000 |
commit | b3f2b912e8efca9c49026119494ab292d27ccf19 (patch) | |
tree | 3261d1de7f7497d2c2fe4d004c2c9bc7c138e3cb /webkit/glue/webframe.h | |
parent | 90ca36995f2484d10a68115b798c10f51d70fca4 (diff) | |
download | chromium_src-b3f2b912e8efca9c49026119494ab292d27ccf19.zip chromium_src-b3f2b912e8efca9c49026119494ab292d27ccf19.tar.gz chromium_src-b3f2b912e8efca9c49026119494ab292d27ccf19.tar.bz2 |
Switch to using WebPoint, WebRect, and WebSize in more of the glue
layer interface. This will help when we move those interfaces into
the WebKit API.
This is a second attempt at r13381, which was already reviewed here:
http://codereview.chromium.org/63126
The only change between that CL and this one is in render_view.h, where I
needed to change a parameter type from gfx::Rect to WebRect.
TBR=dglazkov
Review URL: http://codereview.chromium.org/64005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe.h')
-rw-r--r-- | webkit/glue/webframe.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/webkit/glue/webframe.h b/webkit/glue/webframe.h index 9c36c95..97559b6 100644 --- a/webkit/glue/webframe.h +++ b/webkit/glue/webframe.h @@ -19,15 +19,12 @@ class WebView; class WebTextInput; struct NPObject; -namespace gfx { -class Rect; -class Size; -} - namespace WebKit { struct WebConsoleMessage; struct WebFindOptions; +struct WebRect; struct WebScriptSource; +struct WebSize; } // Every frame in a web page is represented by one WebFrame, including the @@ -223,7 +220,7 @@ class WebFrame { const string16& search_text, const WebKit::WebFindOptions& options, bool wrap_within_frame, - gfx::Rect* selection_rect) = 0; + WebKit::WebRect* selection_rect) = 0; // Notifies the frame that we are no longer interested in searching. This will // abort any asynchronous scoping effort already under way (see the function @@ -259,7 +256,7 @@ class WebFrame { // Notifies the webview-delegate about a new selection rect. This will result // in the browser getting notified. For more information see WebViewDelegate. - virtual void ReportFindInPageSelection(const gfx::Rect& selection_rect, + virtual void ReportFindInPageSelection(const WebKit::WebRect& selection_rect, int active_match_ordinal, int request_id) = 0; @@ -364,7 +361,7 @@ class WebFrame { virtual void ClosePage() = 0; // The current scroll offset from the top of frame in pixels. - virtual gfx::Size ScrollOffset() const = 0; + virtual WebKit::WebSize ScrollOffset() const = 0; // Reformats the web frame for printing. |page_size_px| is the page size in // pixels. @@ -372,7 +369,7 @@ class WebFrame { // |page_count| is the number of printed pages. // Returns false if it fails. It'll fail if the main frame failed to load but // will succeed even if a child frame failed to load. - virtual bool BeginPrint(const gfx::Size& page_size_px, + virtual bool BeginPrint(const WebKit::WebSize& page_size_px, int* page_count) = 0; // Prints one page. |page| is 0-based. |