#ifndef ASH_KEYBOARD_TEST_KEYBOARD_UI_H_
#define ASH_KEYBOARD_TEST_KEYBOARD_UI_H_
#include <memory>
#include "ash/keyboard/ui/keyboard_ui.h"
#include "ash/keyboard/ui/keyboard_ui_factory.h"
#include "ui/aura/test/test_window_delegate.h"
namespace aura {
class Window;
}
namespace ash {
class TestKeyboardUI : public keyboard::KeyboardUI {
public:
TestKeyboardUI();
TestKeyboardUI(const TestKeyboardUI&) = delete;
TestKeyboardUI& operator=(const TestKeyboardUI&) = delete;
~TestKeyboardUI() override;
aura::Window* LoadKeyboardWindow(LoadCallback callback) override;
aura::Window* GetKeyboardWindow() const override;
ui::GestureConsumer* GetGestureConsumer() const override;
private:
ui::InputMethod* GetInputMethod() override;
void ReloadKeyboardIfNeeded() override;
aura::test::TestWindowDelegate delegate_;
std::unique_ptr<aura::Window> keyboard_window_;
};
class TestKeyboardUIFactory : public keyboard::KeyboardUIFactory {
public:
TestKeyboardUIFactory();
TestKeyboardUIFactory(const TestKeyboardUIFactory&) = delete;
TestKeyboardUIFactory& operator=(const TestKeyboardUIFactory&) = delete;
~TestKeyboardUIFactory() override;
private:
std::unique_ptr<keyboard::KeyboardUI> CreateKeyboardUI() override;
};
}
#endif