summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/frame/contents_container.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-05 06:08:54 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-05 06:08:54 +0000
commitcb4282a066df8b0e1c09c90d3780625579c0a569 (patch)
treee3bc08313cbca44a0229775c180511f78ab8e278 /chrome/browser/ui/views/frame/contents_container.h
parentc31116a991f7cd93a69a7f609d9dded29c87ab85 (diff)
downloadchromium_src-cb4282a066df8b0e1c09c90d3780625579c0a569.zip
chromium_src-cb4282a066df8b0e1c09c90d3780625579c0a569.tar.gz
chromium_src-cb4282a066df8b0e1c09c90d3780625579c0a569.tar.bz2
Get rid of another bunch of tab_contents.h includes from chrome and switch the code to use WebContents.
BUG=98716 TBR=erg Review URL: http://codereview.chromium.org/9110003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/frame/contents_container.h')
-rw-r--r--chrome/browser/ui/views/frame/contents_container.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/ui/views/frame/contents_container.h b/chrome/browser/ui/views/frame/contents_container.h
index f36882f..43b88e3 100644
--- a/chrome/browser/ui/views/frame/contents_container.h
+++ b/chrome/browser/ui/views/frame/contents_container.h
@@ -8,7 +8,9 @@
#include "ui/views/view.h"
-class TabContents;
+namespace content {
+class WebContents;
+}
// ContentsContainer is responsible for managing the TabContents views.
// ContentsContainer has up to two children: one for the currently active
@@ -27,9 +29,12 @@ class ContentsContainer : public views::View {
void MakePreviewContentsActiveContents();
// Sets the preview view. This does not delete the old.
- void SetPreview(views::View* preview, TabContents* preview_tab_contents);
+ void SetPreview(views::View* preview,
+ content::WebContents* preview_web_contents);
- TabContents* preview_tab_contents() const { return preview_tab_contents_; }
+ content::WebContents* preview_web_contents() const {
+ return preview_web_contents_;
+ }
// Sets the active top margin.
void SetActiveTopMargin(int margin);
@@ -45,7 +50,7 @@ class ContentsContainer : public views::View {
private:
views::View* active_;
views::View* preview_;
- TabContents* preview_tab_contents_;
+ content::WebContents* preview_web_contents_;
// The margin between the top and the active view. This is used to make the
// preview overlap the bookmark bar on the new tab page.