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

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

Issue 2255533002: Add TabControlFeature to BlimpClientContextImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to head 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 bfbbca356113bdd5f4e70743840be803cef4daf0..faa68136f7755f7c7fcf9e50c79cd060600dc9c4 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/tab_control_feature.h"
#include "blimp/client/public/contents/blimp_contents_observer.h"
#if defined(OS_ANDROID)
@@ -22,8 +23,11 @@ const char kBlimpContentsImplAndroidKey[] = "blimp_contents_impl_android";
#endif // OS_ANDROID
}
-BlimpContentsImpl::BlimpContentsImpl(int id)
- : navigation_controller_(this, nullptr), id_(id) {}
+BlimpContentsImpl::BlimpContentsImpl(int id,
+ TabControlFeature* tab_control_feature)
+ : navigation_controller_(this, nullptr),
+ id_(id),
+ tab_control_feature_(tab_control_feature) {}
BlimpContentsImpl::~BlimpContentsImpl() {
FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, BlimpContentsDying());
@@ -70,5 +74,10 @@ void BlimpContentsImpl::OnNavigationStateChanged() {
OnNavigationStateChanged());
}
+void BlimpContentsImpl::SetSizeAndScale(const gfx::Size& size,
+ float device_pixel_ratio) {
+ tab_control_feature_->SetSizeAndScale(size, device_pixel_ratio);
+}
+
} // 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