OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SHELL_ANDROID_KEYBOARD_IMPL_H_ |
| 6 #define SHELL_ANDROID_KEYBOARD_IMPL_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "mojo/public/cpp/bindings/interface_request.h" |
| 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 12 #include "mojo/services/keyboard/public/interfaces/keyboard.mojom.h" |
| 13 |
| 14 namespace mojo { |
| 15 namespace shell { |
| 16 |
| 17 class KeyboardImpl : public Keyboard { |
| 18 public: |
| 19 KeyboardImpl(InterfaceRequest<Keyboard> request); |
| 20 ~KeyboardImpl(); |
| 21 |
| 22 // Keyboard implementation |
| 23 void Show() override; |
| 24 void Hide() override; |
| 25 |
| 26 private: |
| 27 StrongBinding<Keyboard> binding_; |
| 28 }; |
| 29 |
| 30 bool RegisterKeyboardJni(JNIEnv* env); |
| 31 |
| 32 } // namespace shell |
| 33 } // namespace mojo |
| 34 |
| 35 #endif // SHELL_ANDROID_KEYBOARD_IMPL_H_ |
OLD | NEW |