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

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

Issue 2279403003: blimp: Hook up the layer holding the tab content into Chrome. (Closed)
Patch Set: Addressed comments 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
« no previous file with comments | « blimp/client/core/contents/blimp_contents_impl.h ('k') | blimp/client/core/contents/blimp_contents_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8c7631df0da34d135f1cca5af54b0d89cc5b2fab..e3d9b8f1cc14c378ae75e85f6455482aef996405 100644
--- a/blimp/client/core/contents/blimp_contents_impl.cc
+++ b/blimp/client/core/contents/blimp_contents_impl.cc
@@ -6,6 +6,7 @@
#include "base/memory/ptr_util.h"
#include "base/supports_user_data.h"
+#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"
@@ -27,7 +28,9 @@ BlimpContentsImpl::BlimpContentsImpl(int id,
TabControlFeature* tab_control_feature)
: navigation_controller_(this, nullptr),
id_(id),
- tab_control_feature_(tab_control_feature) {}
+ tab_control_feature_(tab_control_feature) {
+ blimp_contents_view_ = BlimpContentsView::Create(this);
+}
BlimpContentsImpl::~BlimpContentsImpl() {
FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, BlimpContentsDying());
@@ -64,6 +67,10 @@ void BlimpContentsImpl::RemoveObserver(BlimpContentsObserver* observer) {
observers_.RemoveObserver(observer);
}
+gfx::NativeView BlimpContentsImpl::GetNativeView() {
+ return blimp_contents_view_->GetNativeView();
+}
+
bool BlimpContentsImpl::HasObserver(BlimpContentsObserver* observer) {
return observers_.HasObserver(observer);
}
« no previous file with comments | « blimp/client/core/contents/blimp_contents_impl.h ('k') | blimp/client/core/contents/blimp_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698