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

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

Issue 2292343002: Hooking up Blimp IME with BlimpContents (Closed)
Patch Set: Using Callback 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_view_android.cc
diff --git a/blimp/client/core/contents/blimp_contents_view_android.cc b/blimp/client/core/contents/blimp_contents_view_android.cc
index ce32fc5369d61da8493629cc329c3a53c4d34cf8..1d980684ddcbc5a19658f5e9e915a51c2333f2e0 100644
--- a/blimp/client/core/contents/blimp_contents_view_android.cc
+++ b/blimp/client/core/contents/blimp_contents_view_android.cc
@@ -6,6 +6,7 @@
#include "base/memory/ptr_util.h"
#include "blimp/client/core/contents/android/blimp_contents_impl_android.h"
+#include "blimp/client/core/contents/android/ime_helper_dialog.h"
#include "cc/layers/layer.h"
namespace blimp {
@@ -26,11 +27,18 @@ BlimpContentsViewAndroid::BlimpContentsViewAndroid(
// TODO(dtrainor): Use the layer from the compositor manager here instead when
// it goes in the BlimpContents.
view_.SetLayer(cc::Layer::Create());
+ ime_dialog_.reset(new ImeHelperDialog(view_.GetWindowAndroid()));
David Trainor- moved to gerrit 2016/08/31 05:59:10 Let's put this in the constructor, we can access t
shaktisahu 2016/08/31 17:28:21 I had to do blimp_contents->blimp_contents_impl()-
David Trainor- moved to gerrit 2016/08/31 18:59:54 Ah make the constructor take a BlimpClientsImpl()
}
+BlimpContentsViewAndroid::~BlimpContentsViewAndroid() {}
David Trainor- moved to gerrit 2016/08/31 05:59:10 = default?
shaktisahu 2016/08/31 17:28:21 Doesn't work. "Complex destructor has an inline bo
shaktisahu 2016/08/31 17:28:21 Done.
David Trainor- moved to gerrit 2016/08/31 18:59:54 = default; should be fine in the cc file though ri
+
gfx::NativeView BlimpContentsViewAndroid::GetNativeView() {
return &view_;
}
+ImeFeature::Delegate* BlimpContentsViewAndroid::GetImeDelegate() {
+ return ime_dialog_.get();
+}
+
} // namespace client
} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698