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

Unified Diff: blimp/client/core/contents/blimp_contents_impl.cc

Issue 2270323004: Add BlimpView to a Chrome tab when Blimp is enabled. (Closed)
Patch Set: addressed nit, renamed CreateForTesting and piped through touch handling Created 4 years, 4 months 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
Index: blimp/client/core/contents/blimp_contents_impl.cc
diff --git a/blimp/client/core/contents/blimp_contents_impl.cc b/blimp/client/core/contents/blimp_contents_impl.cc
index 2790c6a5a527b20d5136b62ac5b9ea69a40ba7d8..c9c30cd01eda3891cb73934312a7d1cb740ebaf9 100644
--- a/blimp/client/core/contents/blimp_contents_impl.cc
+++ b/blimp/client/core/contents/blimp_contents_impl.cc
@@ -9,6 +9,7 @@
#include "blimp/client/core/contents/blimp_contents_view.h"
#include "blimp/client/core/contents/tab_control_feature.h"
#include "blimp/client/public/contents/blimp_contents_observer.h"
+#include "ui/gfx/native_widget_types.h"
#if defined(OS_ANDROID)
#include "blimp/client/core/contents/android/blimp_contents_impl_android.h"
@@ -26,6 +27,7 @@ const char kBlimpContentsImplAndroidKey[] = "blimp_contents_impl_android";
BlimpContentsImpl::BlimpContentsImpl(
int id,
+ gfx::NativeWindow window,
BlimpCompositorDependencies* compositor_deps,
ImeFeature* ime_feature,
NavigationFeature* navigation_feature,
@@ -34,6 +36,7 @@ BlimpContentsImpl::BlimpContentsImpl(
: navigation_controller_(this, navigation_feature),
compositor_manager_(render_widget_feature, compositor_deps),
id_(id),
+ window_(window),
tab_control_feature_(tab_control_feature) {
blimp_contents_view_ =
BlimpContentsView::Create(this, compositor_manager_.layer());
@@ -66,6 +69,10 @@ BlimpNavigationControllerImpl& BlimpContentsImpl::GetNavigationController() {
return navigation_controller_;
}
+gfx::NativeWindow BlimpContentsImpl::GetNativeWindow() {
+ return window_;
+}
+
void BlimpContentsImpl::AddObserver(BlimpContentsObserver* observer) {
observers_.AddObserver(observer);
}
@@ -100,5 +107,9 @@ void BlimpContentsImpl::SetSizeAndScale(const gfx::Size& size,
tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio);
}
+BlimpContentsView* BlimpContentsImpl::GetBlimpContentsView() {
+ return blimp_contents_view_.get();
+}
+
} // namespace client
} // namespace blimp
« no previous file with comments | « blimp/client/core/contents/blimp_contents_impl.h ('k') | blimp/client/core/contents/blimp_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698