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 #include "ui/views/controls/prefix_selector.h" | 5 #include "ui/views/controls/prefix_selector.h" |
6 | 6 |
7 #include "base/i18n/case_conversion.h" | 7 #include "base/i18n/case_conversion.h" |
8 #include "ui/base/ime/input_method.h" | 8 #include "ui/base/ime/input_method.h" |
9 #include "ui/base/ime/text_input_type.h" | 9 #include "ui/base/ime/text_input_type.h" |
10 #include "ui/gfx/range/range.h" | 10 #include "ui/gfx/range/range.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 bool PrefixSelector::GetSelectionRange(gfx::Range* range) const { | 105 bool PrefixSelector::GetSelectionRange(gfx::Range* range) const { |
106 *range = gfx::Range(); | 106 *range = gfx::Range(); |
107 return false; | 107 return false; |
108 } | 108 } |
109 | 109 |
110 bool PrefixSelector::SetSelectionRange(const gfx::Range& range) { | 110 bool PrefixSelector::SetSelectionRange(const gfx::Range& range) { |
111 return false; | 111 return false; |
112 } | 112 } |
113 | 113 |
| 114 uint32 PrefixSelector::GetSelectionOffset() const { |
| 115 return 0; |
| 116 } |
| 117 |
114 bool PrefixSelector::DeleteRange(const gfx::Range& range) { | 118 bool PrefixSelector::DeleteRange(const gfx::Range& range) { |
115 return false; | 119 return false; |
116 } | 120 } |
117 | 121 |
118 bool PrefixSelector::GetTextFromRange(const gfx::Range& range, | 122 bool PrefixSelector::GetTextFromRange(const gfx::Range& range, |
119 base::string16* text) const { | 123 base::string16* text) const { |
120 return false; | 124 return false; |
121 } | 125 } |
122 | 126 |
123 void PrefixSelector::OnInputMethodChanged() { | 127 void PrefixSelector::OnInputMethodChanged() { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 return (model_text.size() >= lower_text.size()) && | 191 return (model_text.size() >= lower_text.size()) && |
188 (model_text.compare(0, lower_text.size(), lower_text) == 0); | 192 (model_text.compare(0, lower_text.size(), lower_text) == 0); |
189 } | 193 } |
190 | 194 |
191 void PrefixSelector::ClearText() { | 195 void PrefixSelector::ClearText() { |
192 current_text_.clear(); | 196 current_text_.clear(); |
193 time_of_last_key_ = base::TimeTicks(); | 197 time_of_last_key_ = base::TimeTicks(); |
194 } | 198 } |
195 | 199 |
196 } // namespace views | 200 } // namespace views |
OLD | NEW |