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 28 matching lines...) Expand all Loading... |
39 bool GetSelectionRange(gfx::Range* range) const override; | 39 bool GetSelectionRange(gfx::Range* range) const override; |
40 bool SetSelectionRange(const gfx::Range& range) override; | 40 bool SetSelectionRange(const gfx::Range& range) override; |
41 bool DeleteRange(const gfx::Range& range) override; | 41 bool DeleteRange(const gfx::Range& range) override; |
42 bool GetTextFromRange(const gfx::Range& range, | 42 bool GetTextFromRange(const gfx::Range& range, |
43 base::string16* text) const override; | 43 base::string16* text) const override; |
44 void OnInputMethodChanged() override; | 44 void OnInputMethodChanged() override; |
45 bool ChangeTextDirectionAndLayoutAlignment( | 45 bool ChangeTextDirectionAndLayoutAlignment( |
46 base::i18n::TextDirection direction) override; | 46 base::i18n::TextDirection direction) override; |
47 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 47 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
48 void EnsureCaretInRect(const gfx::Rect& rect) override; | 48 void EnsureCaretInRect(const gfx::Rect& rect) override; |
49 bool IsEditCommandEnabled(int command_id) override; | 49 bool IsEditCommandEnabled(TextEditCommand command) const override; |
50 void SetEditCommandForNextKeyEvent(int command_id) override; | 50 void SetEditCommandForNextKeyEvent(TextEditCommand command) override; |
51 | 51 |
52 int insert_char_count() const { return insert_char_count_; } | 52 int insert_char_count() const { return insert_char_count_; } |
53 base::char16 last_insert_char() const { return last_insert_char_; } | 53 base::char16 last_insert_char() const { return last_insert_char_; } |
54 | 54 |
55 TextInputType text_input_type_; | 55 TextInputType text_input_type_; |
56 | 56 |
57 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); | 57 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); |
58 | 58 |
59 private: | 59 private: |
60 int insert_char_count_; | 60 int insert_char_count_; |
61 base::char16 last_insert_char_; | 61 base::char16 last_insert_char_; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace ui | 64 } // namespace ui |
65 | 65 |
66 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ | 66 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ |
OLD | NEW |