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 "ui/base/ime/text_input_client.h" | 8 #include "ui/base/ime/text_input_client.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 16 matching lines...) Expand all Loading... |
27 int GetTextInputFlags() const override; | 27 int GetTextInputFlags() const override; |
28 bool CanComposeInline() const override; | 28 bool CanComposeInline() const override; |
29 gfx::Rect GetCaretBounds() const override; | 29 gfx::Rect GetCaretBounds() const override; |
30 bool GetCompositionCharacterBounds(uint32 index, | 30 bool GetCompositionCharacterBounds(uint32 index, |
31 gfx::Rect* rect) const override; | 31 gfx::Rect* rect) const override; |
32 bool HasCompositionText() const override; | 32 bool HasCompositionText() const override; |
33 bool GetTextRange(gfx::Range* range) const override; | 33 bool GetTextRange(gfx::Range* range) const override; |
34 bool GetCompositionTextRange(gfx::Range* range) const override; | 34 bool GetCompositionTextRange(gfx::Range* range) const override; |
35 bool GetSelectionRange(gfx::Range* range) const override; | 35 bool GetSelectionRange(gfx::Range* range) const override; |
36 bool SetSelectionRange(const gfx::Range& range) override; | 36 bool SetSelectionRange(const gfx::Range& range) override; |
| 37 uint32 GetSelectionOffset() const override; |
37 bool DeleteRange(const gfx::Range& range) override; | 38 bool DeleteRange(const gfx::Range& range) override; |
38 bool GetTextFromRange(const gfx::Range& range, | 39 bool GetTextFromRange(const gfx::Range& range, |
39 base::string16* text) const override; | 40 base::string16* text) const override; |
40 void OnInputMethodChanged() override; | 41 void OnInputMethodChanged() override; |
41 bool ChangeTextDirectionAndLayoutAlignment( | 42 bool ChangeTextDirectionAndLayoutAlignment( |
42 base::i18n::TextDirection direction) override; | 43 base::i18n::TextDirection direction) override; |
43 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 44 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
44 void EnsureCaretInRect(const gfx::Rect& rect) override; | 45 void EnsureCaretInRect(const gfx::Rect& rect) override; |
45 bool IsEditCommandEnabled(int command_id) override; | 46 bool IsEditCommandEnabled(int command_id) override; |
46 void SetEditCommandForNextKeyEvent(int command_id) override; | 47 void SetEditCommandForNextKeyEvent(int command_id) override; |
47 | 48 |
48 TextInputType text_input_type_; | 49 TextInputType text_input_type_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); | 51 DISALLOW_COPY_AND_ASSIGN(DummyTextInputClient); |
51 }; | 52 }; |
52 | 53 |
53 } // namespace ui | 54 } // namespace ui |
54 | 55 |
55 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ | 56 #endif // UI_BASE_IME_DUMMY_TEXT_INPUT_CLIENT_H_ |
OLD | NEW |