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

Unified Diff: ui/views/controls/textfield/native_textfield_views.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 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/textfield/native_textfield_views.cc
diff --git a/ui/views/controls/textfield/native_textfield_views.cc b/ui/views/controls/textfield/native_textfield_views.cc
index a69a54b610b24c00e28096b72965cae02b5e6c25..d5f23f97fa396b21718af45cec101db0acfaf3e2 100644
--- a/ui/views/controls/textfield/native_textfield_views.cc
+++ b/ui/views/controls/textfield/native_textfield_views.cc
@@ -909,7 +909,7 @@ void NativeTextfieldViews::InsertText(const base::string16& text) {
OnAfterUserAction();
}
-void NativeTextfieldViews::InsertChar(char16 ch, int flags) {
+void NativeTextfieldViews::InsertChar(base::char16 ch, int flags) {
if (GetTextInputType() == ui::TEXT_INPUT_TYPE_NONE ||
!ShouldInsertChar(ch, flags)) {
return;
@@ -1484,7 +1484,7 @@ bool NativeTextfieldViews::ImeEditingAllowed() const {
}
// static
-bool NativeTextfieldViews::ShouldInsertChar(char16 ch, int flags) {
+bool NativeTextfieldViews::ShouldInsertChar(base::char16 ch, int flags) {
// Filter out all control characters, including tab and new line characters,
// and all characters with Alt modifier. But we need to allow characters with
// AltGr modifier.
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.h ('k') | ui/views/controls/textfield/native_textfield_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698