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_DUMMY_TEXT_INPUT_CLIENT_H_ | 5 #ifndef UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ |
6 #define UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ | 6 #define UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void OnInputMethodChanged() override; | 45 void OnInputMethodChanged() override; |
46 bool ChangeTextDirectionAndLayoutAlignment( | 46 bool ChangeTextDirectionAndLayoutAlignment( |
47 base::i18n::TextDirection direction) override; | 47 base::i18n::TextDirection direction) override; |
48 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 48 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
49 void EnsureCaretNotInRect(const gfx::Rect& rect) override; | 49 void EnsureCaretNotInRect(const gfx::Rect& rect) override; |
50 bool IsTextEditCommandEnabled(TextEditCommand command) const override; | 50 bool IsTextEditCommandEnabled(TextEditCommand command) const override; |
51 void SetTextEditCommandForNextKeyEvent(TextEditCommand command) override; | 51 void SetTextEditCommandForNextKeyEvent(TextEditCommand command) override; |
52 | 52 |
53 int insert_char_count() const { return insert_char_count_; } | 53 int insert_char_count() const { return insert_char_count_; } |
54 base::char16 last_insert_char() const { return last_insert_char_; } | 54 base::char16 last_insert_char() const { return last_insert_char_; } |
55 int insert_text_count() const { return insert_text_count_; } | 55 const std::vector<base::string16>& insert_text_history() const { |
56 base::string16 last_insert_text() const { return last_insert_text_; } | 56 return insert_text_history_; |
57 int set_composition_count() const { return set_composition_count_; } | 57 } |
58 const CompositionText& last_composition() const { return last_composition_; } | 58 const std::vector<CompositionText>& composition_history() const { |
| 59 return composition_history_; |
| 60 } |
59 | 61 |
60 TextInputType text_input_type_; | 62 TextInputType text_input_type_; |
61 | 63 |
62 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); | 64 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); |
63 | 65 |
64 private: | 66 private: |
65 int insert_char_count_; | 67 int insert_char_count_; |
66 int insert_text_count_; | |
67 int set_composition_count_; | |
68 base::char16 last_insert_char_; | 68 base::char16 last_insert_char_; |
69 base::string16 last_insert_text_; | 69 std::vector<base::string16> insert_text_history_; |
70 CompositionText last_composition_; | 70 std::vector<CompositionText> composition_history_; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace ui | 73 } // namespace ui |
74 | 74 |
75 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ | 75 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ |
OLD | NEW |