| 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) {
|
|
|