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

Unified Diff: shell/android/keyboard_impl.cc

Issue 1088793003: Expose sky KeyboardService in android mojo_shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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: shell/android/keyboard_impl.cc
diff --git a/shell/android/keyboard_impl.cc b/shell/android/keyboard_impl.cc
index cff25fe7a7129ae40a630ddc59b568f2d2b850b7..39f26df8a2e30f06355246af37c2c909b3bf51ae 100644
--- a/shell/android/keyboard_impl.cc
+++ b/shell/android/keyboard_impl.cc
@@ -10,21 +10,13 @@
namespace shell {
-KeyboardImpl::KeyboardImpl(mojo::InterfaceRequest<Keyboard> request)
- : binding_(this, request.Pass()) {
-}
-
-KeyboardImpl::~KeyboardImpl() {
-}
-
-void KeyboardImpl::Show() {
- Java_Keyboard_showSoftKeyboard(base::android::AttachCurrentThread(),
- base::android::GetApplicationContext());
-}
-
-void KeyboardImpl::Hide() {
- Java_Keyboard_hideSoftKeyboard(base::android::AttachCurrentThread(),
- base::android::GetApplicationContext());
+// static
+void KeyboardImpl::CreateKeyboardImpl(
+ mojo::InterfaceRequest<keyboard::KeyboardService> request) {
+ MojoHandle handle_val = request.PassMessagePipe().release().value();
+ Java_Keyboard_createKeyboardImpl(base::android::AttachCurrentThread(),
+ base::android::GetApplicationContext(),
+ handle_val);
}
bool RegisterKeyboardJni(JNIEnv* env) {

Powered by Google App Engine
This is Rietveld 408576698