diff options
Diffstat (limited to 'mojo/shell/android/keyboard_impl.h')
-rw-r--r-- | mojo/shell/android/keyboard_impl.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mojo/shell/android/keyboard_impl.h b/mojo/shell/android/keyboard_impl.h new file mode 100644 index 0000000..e40b7dd --- /dev/null +++ b/mojo/shell/android/keyboard_impl.h @@ -0,0 +1,35 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef SHELL_ANDROID_KEYBOARD_IMPL_H_ +#define SHELL_ANDROID_KEYBOARD_IMPL_H_ + +#include <jni.h> + +#include "mojo/public/cpp/bindings/interface_request.h" +#include "mojo/public/cpp/bindings/strong_binding.h" +#include "mojo/services/keyboard/public/interfaces/keyboard.mojom.h" + +namespace mojo { +namespace shell { + +class KeyboardImpl : public Keyboard { + public: + KeyboardImpl(InterfaceRequest<Keyboard> request); + ~KeyboardImpl(); + + // Keyboard implementation + void Show() override; + void Hide() override; + + private: + StrongBinding<Keyboard> binding_; +}; + +bool RegisterKeyboardJni(JNIEnv* env); + +} // namespace shell +} // namespace mojo + +#endif // SHELL_ANDROID_KEYBOARD_IMPL_H_ |