Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 5785001: A NativeViewHostViews class for embedding views inside NativeHostView instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/ui/views/dom_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/ui/views/dom_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698