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

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

Issue 111373008: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 | Annotate | Revision Log
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void PrefixSelector::ConfirmCompositionText() { 44 void PrefixSelector::ConfirmCompositionText() {
45 } 45 }
46 46
47 void PrefixSelector::ClearCompositionText() { 47 void PrefixSelector::ClearCompositionText() {
48 } 48 }
49 49
50 void PrefixSelector::InsertText(const base::string16& text) { 50 void PrefixSelector::InsertText(const base::string16& text) {
51 OnTextInput(text); 51 OnTextInput(text);
52 } 52 }
53 53
54 void PrefixSelector::InsertChar(char16 ch, int flags) { 54 void PrefixSelector::InsertChar(base::char16 ch, int flags) {
55 OnTextInput(base::string16(1, ch)); 55 OnTextInput(base::string16(1, ch));
56 } 56 }
57 57
58 gfx::NativeWindow PrefixSelector::GetAttachedWindow() const { 58 gfx::NativeWindow PrefixSelector::GetAttachedWindow() const {
59 return prefix_delegate_->GetWidget()->GetNativeWindow(); 59 return prefix_delegate_->GetWidget()->GetNativeWindow();
60 } 60 }
61 61
62 ui::TextInputType PrefixSelector::GetTextInputType() const { 62 ui::TextInputType PrefixSelector::GetTextInputType() const {
63 return ui::TEXT_INPUT_TYPE_TEXT; 63 return ui::TEXT_INPUT_TYPE_TEXT;
64 } 64 }
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 return (model_text.size() >= lower_text.size()) && 188 return (model_text.size() >= lower_text.size()) &&
189 (model_text.compare(0, lower_text.size(), lower_text) == 0); 189 (model_text.compare(0, lower_text.size(), lower_text) == 0);
190 } 190 }
191 191
192 void PrefixSelector::ClearText() { 192 void PrefixSelector::ClearText() {
193 current_text_.clear(); 193 current_text_.clear();
194 time_of_last_key_ = base::TimeTicks(); 194 time_of_last_key_ = base::TimeTicks();
195 } 195 }
196 196
197 } // namespace views 197 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/prefix_selector.h ('k') | ui/views/controls/textfield/native_textfield_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698