diff options
Diffstat (limited to 'content/browser/tab_contents')
| -rw-r--r-- | content/browser/tab_contents/tab_contents.cc | 4 | ||||
| -rw-r--r-- | content/browser/tab_contents/tab_contents.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc index 327f407..d89b717 100644 --- a/content/browser/tab_contents/tab_contents.cc +++ b/content/browser/tab_contents/tab_contents.cc @@ -1590,6 +1590,10 @@ TabContents* TabContents::GetAsTabContents() { return this; } +WebContents* TabContents::GetAsWebContents() { + return this; +} + content::ViewType TabContents::GetRenderViewType() const { return view_type_; } diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h index 04bc8fc..892c62d 100644 --- a/content/browser/tab_contents/tab_contents.h +++ b/content/browser/tab_contents/tab_contents.h @@ -234,6 +234,7 @@ class CONTENT_EXPORT TabContents virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; virtual const GURL& GetURL() const OVERRIDE; virtual TabContents* GetAsTabContents() OVERRIDE; + virtual WebContents* GetAsWebContents() OVERRIDE; virtual content::ViewType GetRenderViewType() const OVERRIDE; virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; virtual void RenderViewReady(RenderViewHost* render_view_host) OVERRIDE; |
