OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROMEOS_IME_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ | 5 #ifndef CHROMEOS_IME_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ |
6 #define CHROMEOS_IME_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ | 6 #define CHROMEOS_IME_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ |
7 | 7 |
8 #include "chromeos/dbus/ibus/ibus_text.h" | |
9 #include "chromeos/ime/ibus_bridge.h" | 8 #include "chromeos/ime/ibus_bridge.h" |
| 9 #include "chromeos/ime/ibus_text.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 class CHROMEOS_EXPORT MockIMEInputContextHandler | 13 class CHROMEOS_EXPORT MockIMEInputContextHandler |
14 : public IBusInputContextHandlerInterface { | 14 : public IBusInputContextHandlerInterface { |
15 public: | 15 public: |
16 struct UpdatePreeditTextArg { | 16 struct UpdatePreeditTextArg { |
17 IBusText ibus_text; | 17 IBusText ibus_text; |
18 uint32 cursor_pos; | 18 uint32 cursor_pos; |
19 bool is_visible; | 19 bool is_visible; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 int hide_preedit_text_call_count_; | 81 int hide_preedit_text_call_count_; |
82 int delete_surrounding_text_call_count_; | 82 int delete_surrounding_text_call_count_; |
83 std::string last_commit_text_; | 83 std::string last_commit_text_; |
84 UpdatePreeditTextArg last_update_preedit_arg_; | 84 UpdatePreeditTextArg last_update_preedit_arg_; |
85 DeleteSurroundingTextArg last_delete_surrounding_text_arg_; | 85 DeleteSurroundingTextArg last_delete_surrounding_text_arg_; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace chromeos | 88 } // namespace chromeos |
89 | 89 |
90 #endif // CHROMEOS_IME_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ | 90 #endif // CHROMEOS_IME_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ |
OLD | NEW |