OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_BASE_TEST_DUMMY_INPUT_METHOD_H_ | 5 #ifndef UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
6 #define UI_BASE_TEST_DUMMY_INPUT_METHOD_H_ | 6 #define UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
7 | 7 |
8 #include "ui/base/ime/input_method.h" | 8 #include "ui/base/ime/input_method.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
11 | 11 |
12 class InputMethodObserver; | 12 class InputMethodObserver; |
13 | 13 |
14 namespace test { | |
15 | |
16 class DummyInputMethod : public InputMethod { | 14 class DummyInputMethod : public InputMethod { |
17 public: | 15 public: |
18 DummyInputMethod(); | 16 DummyInputMethod(); |
19 virtual ~DummyInputMethod(); | 17 virtual ~DummyInputMethod(); |
20 | 18 |
21 // InputMethod overrides: | 19 // InputMethod overrides: |
22 virtual void SetDelegate( | 20 virtual void SetDelegate( |
23 internal::InputMethodDelegate* delegate) OVERRIDE; | 21 internal::InputMethodDelegate* delegate) OVERRIDE; |
24 virtual void Init(bool focused) OVERRIDE; | 22 virtual void Init(bool focused) OVERRIDE; |
25 virtual void OnFocus() OVERRIDE; | 23 virtual void OnFocus() OVERRIDE; |
(...skipping 10 matching lines...) Expand all Loading... |
36 virtual bool IsActive() OVERRIDE; | 34 virtual bool IsActive() OVERRIDE; |
37 virtual TextInputType GetTextInputType() const OVERRIDE; | 35 virtual TextInputType GetTextInputType() const OVERRIDE; |
38 virtual bool CanComposeInline() const OVERRIDE; | 36 virtual bool CanComposeInline() const OVERRIDE; |
39 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; | 37 virtual void AddObserver(InputMethodObserver* observer) OVERRIDE; |
40 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; | 38 virtual void RemoveObserver(InputMethodObserver* observer) OVERRIDE; |
41 | 39 |
42 private: | 40 private: |
43 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod); | 41 DISALLOW_COPY_AND_ASSIGN(DummyInputMethod); |
44 }; | 42 }; |
45 | 43 |
46 } // namespace test | |
47 } // namespace ui | 44 } // namespace ui |
48 | 45 |
49 #endif // UI_BASE_TEST_DUMMY_INPUT_METHOD_H_ | 46 #endif // UI_BASE_IME_DUMMY_INPUT_METHOD_H_ |
50 | 47 |
OLD | NEW |