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

Unified Diff: ui/views/controls/textfield/native_textfield_views.h

Issue 9358049: Implement STYLE_LOWERCASE style for Aura NativeTextfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for comments. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/textfield/native_textfield_views.h
diff --git a/ui/views/controls/textfield/native_textfield_views.h b/ui/views/controls/textfield/native_textfield_views.h
index 83341e1db521da1aa9fff5544a7080ebea6cbd33..49e2f620ca0927849ce1d40092651313a8ba937c 100644
--- a/ui/views/controls/textfield/native_textfield_views.h
+++ b/ui/views/controls/textfield/native_textfield_views.h
@@ -172,6 +172,10 @@ class VIEWS_EXPORT NativeTextfieldViews : public TouchSelectionClientView,
// Returns the TextfieldViewsModel's text/cursor/selection rendering model.
gfx::RenderText* GetRenderText() const;
+ // Converts |text| according to textfield style, e.g. lower case if
+ // |textfield_| has STYLE_LOWERCASE style.
+ string16 GetTextForDisplay(const string16& text);
+
// A callback function to periodically update the cursor state.
void UpdateCursor();
@@ -197,7 +201,7 @@ class VIEWS_EXPORT NativeTextfieldViews : public TouchSelectionClientView,
// changed.
void UpdateAfterChange(bool text_changed, bool cursor_changed);
- // Utility function to prepare the context menu..
+ // Utility function to prepare the context menu.
void UpdateContextMenu();
// Convenience method to call InputMethod::OnTextInputTypeChanged();
« no previous file with comments | « chrome/browser/ui/views/edit_search_engine_dialog.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698