diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 21:58:04 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 21:58:04 +0000 |
commit | 02e80deede0729617aeb87128b1db3cd14b36d6b (patch) | |
tree | dfdec4f6e761c652ba8439dc36204cfa31246962 /webkit/glue/webframe.h | |
parent | 98aebc7fc44cc34ecfa5a33ade9a8aa511bb96a3 (diff) | |
download | chromium_src-02e80deede0729617aeb87128b1db3cd14b36d6b.zip chromium_src-02e80deede0729617aeb87128b1db3cd14b36d6b.tar.gz chromium_src-02e80deede0729617aeb87128b1db3cd14b36d6b.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.
R=dglazkov
Review URL: http://codereview.chromium.org/63126
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13381 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. |