Chromium Code Reviews| Index: ash/test/test_keyboard_ui.h |
| diff --git a/ash/test/test_keyboard_ui.h b/ash/test/test_keyboard_ui.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..51c9ed76bf562a308be9292286a22746783695a7 |
| --- /dev/null |
| +++ b/ash/test/test_keyboard_ui.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
|
sky
2015/10/09 18:23:29
2015
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_TEST_TEST_KEYBOARD_UI_H_ |
| +#define ASH_TEST_TEST_KEYBOARD_UI_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "ui/aura/test/test_window_delegate.h" |
| +#include "ui/keyboard/keyboard_ui.h" |
| + |
| +namespace aura { |
| +class Window; |
| +} // namespace aura |
| + |
| +namespace ash { |
| + |
| +// Stub implementation of keyboard::KeyboardUI |
| +class TestKeyboardUI : public keyboard::KeyboardUI { |
| + public: |
| + TestKeyboardUI(); |
| + ~TestKeyboardUI() override; |
| + |
| + bool HasKeyboardWindow() const override; |
| + aura::Window* GetKeyboardWindow() override; |
| + |
| + private: |
| + // Overridden from keyboard::KeyboardUI: |
| + ui::InputMethod* GetInputMethod() override; |
| + |
| + aura::test::TestWindowDelegate delegate_; |
| + scoped_ptr<aura::Window> keyboard_; |
| + DISALLOW_COPY_AND_ASSIGN(TestKeyboardUI); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_TEST_TEST_KEYBOARD_UI_H_ |