Index: chrome/browser/tab_contents/tab_contents.cc |
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc |
index cdc023d050f4d8ba3d10898ad48505f7063e9061..8545ef10d311cc2a4edec5811cc2ee47b71217e4 100644 |
--- a/chrome/browser/tab_contents/tab_contents.cc |
+++ b/chrome/browser/tab_contents/tab_contents.cc |
@@ -114,6 +114,10 @@ |
#include "webkit/glue/password_form.h" |
#include "webkit/glue/plugins/plugin_list.h" |
+#if defined(TOUCH_UI) |
+#include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" |
Ben Goodger (Google)
2010/12/10 15:42:57
Don't add this here - it's a layering violation.
|
+#endif |
+ |
// Cross-Site Navigations |
// |
// If a TabContents is told to navigate to a different web site (as determined |
@@ -1044,6 +1048,12 @@ gfx::NativeView TabContents::GetNativeView() const { |
return view_->GetNativeView(); |
} |
+#if defined(TOUCH_UI) |
+views::View* TabContents::GetViewsView() { |
+ return static_cast<TabContentsViewViews*>(view_.get()); |
+} |
+#endif |
+ |
void TabContents::GetContainerBounds(gfx::Rect *out) const { |
view_->GetContainerBounds(out); |
} |