| 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_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ |
| 6 #define UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ | 6 #define UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "ui/base/ime/text_input_client.h" | 10 #include "ui/base/ime/text_input_client.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 int GetTextInputFlags() const override; | 35 int GetTextInputFlags() const override; |
| 36 bool CanComposeInline() const override; | 36 bool CanComposeInline() const override; |
| 37 gfx::Rect GetCaretBounds() const override; | 37 gfx::Rect GetCaretBounds() const override; |
| 38 bool GetCompositionCharacterBounds(uint32 index, | 38 bool GetCompositionCharacterBounds(uint32 index, |
| 39 gfx::Rect* rect) const override; | 39 gfx::Rect* rect) const override; |
| 40 bool HasCompositionText() const override; | 40 bool HasCompositionText() const override; |
| 41 bool GetTextRange(gfx::Range* range) const override; | 41 bool GetTextRange(gfx::Range* range) const override; |
| 42 bool GetCompositionTextRange(gfx::Range* range) const override; | 42 bool GetCompositionTextRange(gfx::Range* range) const override; |
| 43 bool GetSelectionRange(gfx::Range* range) const override; | 43 bool GetSelectionRange(gfx::Range* range) const override; |
| 44 bool SetSelectionRange(const gfx::Range& range) override; | 44 bool SetSelectionRange(const gfx::Range& range) override; |
| 45 uint32 GetSelectionOffset() const override; |
| 45 bool DeleteRange(const gfx::Range& range) override; | 46 bool DeleteRange(const gfx::Range& range) override; |
| 46 bool GetTextFromRange(const gfx::Range& range, | 47 bool GetTextFromRange(const gfx::Range& range, |
| 47 base::string16* text) const override; | 48 base::string16* text) const override; |
| 48 void OnInputMethodChanged() override; | 49 void OnInputMethodChanged() override; |
| 49 bool ChangeTextDirectionAndLayoutAlignment( | 50 bool ChangeTextDirectionAndLayoutAlignment( |
| 50 base::i18n::TextDirection direction) override; | 51 base::i18n::TextDirection direction) override; |
| 51 void ExtendSelectionAndDelete(size_t before, size_t after) override; | 52 void ExtendSelectionAndDelete(size_t before, size_t after) override; |
| 52 void EnsureCaretInRect(const gfx::Rect& rect) override; | 53 void EnsureCaretInRect(const gfx::Rect& rect) override; |
| 53 | 54 |
| 54 bool IsEditCommandEnabled(int command_id) override; | 55 bool IsEditCommandEnabled(int command_id) override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 70 base::TimeTicks time_of_last_key_; | 71 base::TimeTicks time_of_last_key_; |
| 71 | 72 |
| 72 base::string16 current_text_; | 73 base::string16 current_text_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(PrefixSelector); | 75 DISALLOW_COPY_AND_ASSIGN(PrefixSelector); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace views | 78 } // namespace views |
| 78 | 79 |
| 79 #endif // UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ | 80 #endif // UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ |
| OLD | NEW |