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

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

Issue 2292343002: Hooking up Blimp IME with BlimpContents (Closed)
Patch Set: Addressed initial 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
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 76e486f0a68630842444918a99ba2c8c6e801329..64d859793104c04ee95a789fc532bdd35d084c8c 100644
--- a/blimp/client/core/contents/blimp_contents_impl.cc
+++ b/blimp/client/core/contents/blimp_contents_impl.cc
@@ -30,12 +30,15 @@ BlimpContentsImpl::BlimpContentsImpl(int id,
TabControlFeature* tab_control_feature)
: navigation_controller_(this, navigation_feature),
id_(id),
+ ime_feature_(ime_feature),
tab_control_feature_(tab_control_feature) {
blimp_contents_view_ = BlimpContentsView::Create(this);
+ ime_feature_->set_delegate(blimp_contents_view_->GetImeDelegate());
}
BlimpContentsImpl::~BlimpContentsImpl() {
FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, BlimpContentsDying());
+ ime_feature_->set_delegate(nullptr);
}
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698