Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
|
sky
2015/10/09 18:23:29
2015
| |
| 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 ASH_TEST_TEST_KEYBOARD_UI_H_ | |
| 6 #define ASH_TEST_TEST_KEYBOARD_UI_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "ui/aura/test/test_window_delegate.h" | |
| 10 #include "ui/keyboard/keyboard_ui.h" | |
| 11 | |
| 12 namespace aura { | |
| 13 class Window; | |
| 14 } // namespace aura | |
| 15 | |
| 16 namespace ash { | |
| 17 | |
| 18 // Stub implementation of keyboard::KeyboardUI | |
| 19 class TestKeyboardUI : public keyboard::KeyboardUI { | |
| 20 public: | |
| 21 TestKeyboardUI(); | |
| 22 ~TestKeyboardUI() override; | |
| 23 | |
| 24 bool HasKeyboardWindow() const override; | |
| 25 aura::Window* GetKeyboardWindow() override; | |
| 26 | |
| 27 private: | |
| 28 // Overridden from keyboard::KeyboardUI: | |
| 29 ui::InputMethod* GetInputMethod() override; | |
| 30 | |
| 31 aura::test::TestWindowDelegate delegate_; | |
| 32 scoped_ptr<aura::Window> keyboard_; | |
| 33 DISALLOW_COPY_AND_ASSIGN(TestKeyboardUI); | |
| 34 }; | |
| 35 | |
| 36 } // namespace ash | |
| 37 | |
| 38 #endif // ASH_TEST_TEST_KEYBOARD_UI_H_ | |
| OLD | NEW |