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

Unified Diff: ui/views/controls/textfield/textfield.cc

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | ui/views/controls/textfield/textfield_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index de590dc304ca02f7c7aac983a373595e53a6c9e4..fa41ce1f5af9123f62761738adfdc47e59f16427 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -163,19 +163,19 @@ void Textfield::SetTextInputType(ui::TextInputType type) {
SetObscured(should_be_obscured);
}
-void Textfield::SetText(const string16& text) {
+void Textfield::SetText(const base::string16& text) {
text_ = text;
if (native_wrapper_)
native_wrapper_->UpdateText();
}
-void Textfield::AppendText(const string16& text) {
+void Textfield::AppendText(const base::string16& text) {
text_ += text;
if (native_wrapper_)
native_wrapper_->AppendText(text);
}
-void Textfield::InsertOrReplaceText(const string16& text) {
+void Textfield::InsertOrReplaceText(const base::string16& text) {
if (native_wrapper_) {
native_wrapper_->InsertOrReplaceText(text);
text_ = native_wrapper_->GetText();
@@ -192,8 +192,9 @@ void Textfield::SelectAll(bool reversed) {
native_wrapper_->SelectAll(reversed);
}
-string16 Textfield::GetSelectedText() const {
- return native_wrapper_ ? native_wrapper_->GetSelectedText() : string16();
+base::string16 Textfield::GetSelectedText() const {
+ return native_wrapper_ ? native_wrapper_->GetSelectedText() :
+ base::string16();
}
void Textfield::ClearSelection() const {
@@ -345,7 +346,7 @@ void Textfield::UpdateAllProperties() {
void Textfield::SyncText() {
if (native_wrapper_) {
- string16 new_text = native_wrapper_->GetText();
+ base::string16 new_text = native_wrapper_->GetText();
if (new_text != text_) {
text_ = new_text;
if (controller_)
@@ -400,7 +401,7 @@ void Textfield::ClearEditHistory() {
native_wrapper_->ClearEditHistory();
}
-void Textfield::SetAccessibleName(const string16& name) {
+void Textfield::SetAccessibleName(const base::string16& name) {
accessible_name_ = name;
}
@@ -559,7 +560,7 @@ gfx::Insets Textfield::GetTextInsets() const {
return insets;
}
-void Textfield::AccessibilitySetValue(const string16& new_value) {
+void Textfield::AccessibilitySetValue(const base::string16& new_value) {
if (!read_only()) {
SetText(new_value);
ClearSelection();
« no previous file with comments | « ui/views/controls/textfield/textfield.h ('k') | ui/views/controls/textfield/textfield_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698