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 13 matching lines...) Expand all Loading... |
24 // Invoked from the view when it loses focus. | 24 // Invoked from the view when it loses focus. |
25 void OnViewBlur(); | 25 void OnViewBlur(); |
26 | 26 |
27 // ui::TextInputClient: | 27 // ui::TextInputClient: |
28 virtual void SetCompositionText( | 28 virtual void SetCompositionText( |
29 const ui::CompositionText& composition) OVERRIDE; | 29 const ui::CompositionText& composition) OVERRIDE; |
30 virtual void ConfirmCompositionText() OVERRIDE; | 30 virtual void ConfirmCompositionText() OVERRIDE; |
31 virtual void ClearCompositionText() OVERRIDE; | 31 virtual void ClearCompositionText() OVERRIDE; |
32 virtual void InsertText(const base::string16& text) OVERRIDE; | 32 virtual void InsertText(const base::string16& text) OVERRIDE; |
33 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE; | 33 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE; |
34 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; | |
35 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 34 virtual ui::TextInputType GetTextInputType() const OVERRIDE; |
36 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; | 35 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; |
37 virtual bool CanComposeInline() const OVERRIDE; | 36 virtual bool CanComposeInline() const OVERRIDE; |
38 virtual gfx::Rect GetCaretBounds() const OVERRIDE; | 37 virtual gfx::Rect GetCaretBounds() const OVERRIDE; |
39 virtual bool GetCompositionCharacterBounds(uint32 index, | 38 virtual bool GetCompositionCharacterBounds(uint32 index, |
40 gfx::Rect* rect) const OVERRIDE; | 39 gfx::Rect* rect) const OVERRIDE; |
41 virtual bool HasCompositionText() const OVERRIDE; | 40 virtual bool HasCompositionText() const OVERRIDE; |
42 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; | 41 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; |
43 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; | 42 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; |
44 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; | 43 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
71 base::TimeTicks time_of_last_key_; | 70 base::TimeTicks time_of_last_key_; |
72 | 71 |
73 base::string16 current_text_; | 72 base::string16 current_text_; |
74 | 73 |
75 DISALLOW_COPY_AND_ASSIGN(PrefixSelector); | 74 DISALLOW_COPY_AND_ASSIGN(PrefixSelector); |
76 }; | 75 }; |
77 | 76 |
78 } // namespace views | 77 } // namespace views |
79 | 78 |
80 #endif // UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ | 79 #endif // UI_VIEWS_CONTROLS_PREFIX_SELECTOR_H_ |
OLD | NEW |