diff options
author | dglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 17:56:39 +0000 |
---|---|---|
committer | dglazkov@google.com <dglazkov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 17:56:39 +0000 |
commit | 9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7 (patch) | |
tree | 258cddf035cb585b515ee8d69bc58b3e4e9d8620 /webkit/glue/webview_impl.h | |
parent | 81f3095725e27bc914f5ce85d99a929f76a347d3 (diff) | |
download | chromium_src-9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7.zip chromium_src-9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7.tar.gz chromium_src-9b451c0bce7c09d32a1f885f2b86fc388ecd8ee7.tar.bz2 |
Landing 37604:38097 merge
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5110 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.h')
-rw-r--r-- | webkit/glue/webview_impl.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/webkit/glue/webview_impl.h b/webkit/glue/webview_impl.h index e5b5e8e..f53f211 100644 --- a/webkit/glue/webview_impl.h +++ b/webkit/glue/webview_impl.h @@ -19,6 +19,7 @@ MSVC_PUSH_WARNING_LEVEL(0); #include "BackForwardList.h" +#include "Page.h" MSVC_POP_WARNING(); namespace WebCore { @@ -118,20 +119,22 @@ class WebViewImpl : public WebView, public WebCore::BackForwardListClient { static WebViewImpl* FromPage(WebCore::Page* page); - WebFrameImpl* main_frame() { - return main_frame_; - } - WebViewDelegate* delegate() { return delegate_.get(); } - // Returns the page object associated with this view. This may be NULL when - // the page is shutting down, but will be valid all other times. + // Returns the page object associated with this view. This may be NULL when + // the page is shutting down, but will be valid at all other times. WebCore::Page* page() const { return page_.get(); } + // Returns the main frame associated with this view. This may be NULL when + // the page is shutting down, but will be valid at all other times. + WebFrameImpl* main_frame() { + return page_.get() ? WebFrameImpl::FromFrame(page_->mainFrame()) : NULL; + } + WebHistoryItemImpl* pending_history_item() const { return pending_history_item_; } @@ -224,7 +227,6 @@ class WebViewImpl : public WebView, public WebCore::BackForwardListClient { scoped_refptr<WebViewDelegate> delegate_; gfx::Size size_; - scoped_refptr<WebFrameImpl> main_frame_; gfx::Point last_mouse_position_; // Reference to the Frame that last had focus. This is set once when // we lose focus, and used when focus is gained to reinstall focus to |