Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: ui/views/controls/prefix_selector.cc

Issue 1163603004: Remove candidate show/hide/update related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/controls/prefix_selector.h ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/text_input_type.h" 8 #include "ui/base/ime/text_input_type.h"
9 #include "ui/gfx/range/range.h" 9 #include "ui/gfx/range/range.h"
10 #include "ui/views/controls/prefix_delegate.h" 10 #include "ui/views/controls/prefix_delegate.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 base::i18n::TextDirection direction) { 131 base::i18n::TextDirection direction) {
132 return true; 132 return true;
133 } 133 }
134 134
135 void PrefixSelector::ExtendSelectionAndDelete(size_t before, size_t after) { 135 void PrefixSelector::ExtendSelectionAndDelete(size_t before, size_t after) {
136 } 136 }
137 137
138 void PrefixSelector::EnsureCaretInRect(const gfx::Rect& rect) { 138 void PrefixSelector::EnsureCaretInRect(const gfx::Rect& rect) {
139 } 139 }
140 140
141 void PrefixSelector::OnCandidateWindowShown() {
142 }
143
144 void PrefixSelector::OnCandidateWindowUpdated() {
145 }
146
147 void PrefixSelector::OnCandidateWindowHidden() {
148 }
149
150 bool PrefixSelector::IsEditCommandEnabled(int command_id) { 141 bool PrefixSelector::IsEditCommandEnabled(int command_id) {
151 return false; 142 return false;
152 } 143 }
153 144
154 void PrefixSelector::SetEditCommandForNextKeyEvent(int command_id) { 145 void PrefixSelector::SetEditCommandForNextKeyEvent(int command_id) {
155 } 146 }
156 147
157 void PrefixSelector::OnTextInput(const base::string16& text) { 148 void PrefixSelector::OnTextInput(const base::string16& text) {
158 // Small hack to filter out 'tab' and 'enter' input, as the expectation is 149 // Small hack to filter out 'tab' and 'enter' input, as the expectation is
159 // that they are control characters and will not affect the currently-active 150 // that they are control characters and will not affect the currently-active
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 return (model_text.size() >= lower_text.size()) && 190 return (model_text.size() >= lower_text.size()) &&
200 (model_text.compare(0, lower_text.size(), lower_text) == 0); 191 (model_text.compare(0, lower_text.size(), lower_text) == 0);
201 } 192 }
202 193
203 void PrefixSelector::ClearText() { 194 void PrefixSelector::ClearText() {
204 current_text_.clear(); 195 current_text_.clear();
205 time_of_last_key_ = base::TimeTicks(); 196 time_of_last_key_ = base::TimeTicks();
206 } 197 }
207 198
208 } // namespace views 199 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/prefix_selector.h ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698