blob: e40b7dd46322b49e7198b13947da5e206eb48f8d [file] [log] [blame]
// 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_