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

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

Issue 2554513002: Change |EnsureCaretInRect| to |EnsureCaretNotInRect|. (Closed)
Patch Set: Created 4 years 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/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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } 130 }
131 131
132 bool PrefixSelector::ChangeTextDirectionAndLayoutAlignment( 132 bool PrefixSelector::ChangeTextDirectionAndLayoutAlignment(
133 base::i18n::TextDirection direction) { 133 base::i18n::TextDirection direction) {
134 return true; 134 return true;
135 } 135 }
136 136
137 void PrefixSelector::ExtendSelectionAndDelete(size_t before, size_t after) { 137 void PrefixSelector::ExtendSelectionAndDelete(size_t before, size_t after) {
138 } 138 }
139 139
140 void PrefixSelector::EnsureCaretInRect(const gfx::Rect& rect) { 140 void PrefixSelector::EnsureCaretNotInRect(const gfx::Rect& rect) {}
141 }
142 141
143 bool PrefixSelector::IsTextEditCommandEnabled( 142 bool PrefixSelector::IsTextEditCommandEnabled(
144 ui::TextEditCommand command) const { 143 ui::TextEditCommand command) const {
145 return false; 144 return false;
146 } 145 }
147 146
148 void PrefixSelector::SetTextEditCommandForNextKeyEvent( 147 void PrefixSelector::SetTextEditCommandForNextKeyEvent(
149 ui::TextEditCommand command) {} 148 ui::TextEditCommand command) {}
150 149
151 void PrefixSelector::OnTextInput(const base::string16& text) { 150 void PrefixSelector::OnTextInput(const base::string16& text) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 return (model_text.size() >= lower_text.size()) && 192 return (model_text.size() >= lower_text.size()) &&
194 (model_text.compare(0, lower_text.size(), lower_text) == 0); 193 (model_text.compare(0, lower_text.size(), lower_text) == 0);
195 } 194 }
196 195
197 void PrefixSelector::ClearText() { 196 void PrefixSelector::ClearText() {
198 current_text_.clear(); 197 current_text_.clear();
199 time_of_last_key_ = base::TimeTicks(); 198 time_of_last_key_ = base::TimeTicks();
200 } 199 }
201 200
202 } // namespace views 201 } // 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