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