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 #include "ui/base/test/dummy_input_method.h" | 5 #include "ui/base/test/dummy_input_method.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 namespace test { | 8 namespace test { |
9 | 9 |
10 DummyInputMethod::DummyInputMethod() { | 10 DummyInputMethod::DummyInputMethod() { |
(...skipping 14 matching lines...) Expand all Loading... |
25 void DummyInputMethod::OnBlur() { | 25 void DummyInputMethod::OnBlur() { |
26 } | 26 } |
27 | 27 |
28 void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) { | 28 void DummyInputMethod::SetFocusedTextInputClient(TextInputClient* client) { |
29 } | 29 } |
30 | 30 |
31 TextInputClient* DummyInputMethod::GetTextInputClient() const { | 31 TextInputClient* DummyInputMethod::GetTextInputClient() const { |
32 return NULL; | 32 return NULL; |
33 } | 33 } |
34 | 34 |
35 void DummyInputMethod::DispatchKeyEvent( | 35 void DummyInputMethod::DispatchKeyEvent(const base::NativeEvent& event) { |
36 const base::NativeEvent& native_key_event) { | 36 } |
| 37 |
| 38 void DummyInputMethod::DispatchFabricatedKeyEvent(const ui::KeyEvent& event) { |
37 } | 39 } |
38 | 40 |
39 void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) { | 41 void DummyInputMethod::OnTextInputTypeChanged(const TextInputClient* client) { |
40 } | 42 } |
41 | 43 |
42 void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) { | 44 void DummyInputMethod::OnCaretBoundsChanged(const TextInputClient* client) { |
43 } | 45 } |
44 | 46 |
45 void DummyInputMethod::CancelComposition(const TextInputClient* client) { | 47 void DummyInputMethod::CancelComposition(const TextInputClient* client) { |
46 } | 48 } |
47 | 49 |
48 std::string DummyInputMethod::GetInputLocale() { | 50 std::string DummyInputMethod::GetInputLocale() { |
49 return ""; | 51 return std::string(); |
50 } | 52 } |
51 | 53 |
52 base::i18n::TextDirection DummyInputMethod::GetInputTextDirection() { | 54 base::i18n::TextDirection DummyInputMethod::GetInputTextDirection() { |
53 return base::i18n::UNKNOWN_DIRECTION; | 55 return base::i18n::UNKNOWN_DIRECTION; |
54 } | 56 } |
55 | 57 |
56 bool DummyInputMethod::IsActive() { | 58 bool DummyInputMethod::IsActive() { |
57 return true; | 59 return true; |
58 } | 60 } |
59 | 61 |
60 TextInputType DummyInputMethod::GetTextInputType() const { | 62 TextInputType DummyInputMethod::GetTextInputType() const { |
61 return TEXT_INPUT_TYPE_NONE; | 63 return TEXT_INPUT_TYPE_NONE; |
62 } | 64 } |
63 | 65 |
64 bool DummyInputMethod::CanComposeInline() const { | 66 bool DummyInputMethod::CanComposeInline() const { |
65 return true; | 67 return true; |
66 } | 68 } |
67 | 69 |
68 } // namespace test | 70 } // namespace test |
69 } // namespace ui | 71 } // namespace ui |
70 | 72 |
OLD | NEW |