| 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 UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ |
| 6 #define UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ | 6 #define UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "chromeos/ime/ibus_text.h" | 8 #include "chromeos/ime/ibus_text.h" |
| 9 #include "ui/base/ime/chromeos/ibus_bridge.h" | 9 #include "ui/base/ime/chromeos/ibus_bridge.h" |
| 10 #include "ui/base/ui_export.h" | 10 #include "ui/base/ui_base_export.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 class UI_EXPORT MockIMEInputContextHandler | 14 class UI_BASE_EXPORT MockIMEInputContextHandler |
| 15 : public IBusInputContextHandlerInterface { | 15 : public IBusInputContextHandlerInterface { |
| 16 public: | 16 public: |
| 17 struct UpdatePreeditTextArg { | 17 struct UpdatePreeditTextArg { |
| 18 IBusText ibus_text; | 18 IBusText ibus_text; |
| 19 uint32 cursor_pos; | 19 uint32 cursor_pos; |
| 20 bool is_visible; | 20 bool is_visible; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 struct DeleteSurroundingTextArg { | 23 struct DeleteSurroundingTextArg { |
| 24 int32 offset; | 24 int32 offset; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 int update_preedit_text_call_count_; | 64 int update_preedit_text_call_count_; |
| 65 int delete_surrounding_text_call_count_; | 65 int delete_surrounding_text_call_count_; |
| 66 std::string last_commit_text_; | 66 std::string last_commit_text_; |
| 67 UpdatePreeditTextArg last_update_preedit_arg_; | 67 UpdatePreeditTextArg last_update_preedit_arg_; |
| 68 DeleteSurroundingTextArg last_delete_surrounding_text_arg_; | 68 DeleteSurroundingTextArg last_delete_surrounding_text_arg_; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace chromeos | 71 } // namespace chromeos |
| 72 | 72 |
| 73 #endif // UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ | 73 #endif // UI_BASE_IME_CHROMEOS_MOCK_IME_INPUT_CONTEXT_HANDLER_H_ |
| OLD | NEW |