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

Unified Diff: ui/gfx/render_text.h

Issue 10693160: Add and specify Views::Textfield::SelectAll |reversed| flag, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove redundant comments. Created 8 years, 5 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
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text.h
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index 0f8ca506022c838541b9b349bef107e02ad9b316..a6265b06feae687d13eb1f361e8eb956216548ea 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -226,9 +226,15 @@ class UI_EXPORT RenderText {
// Returns true if the local point is over selected text.
bool IsPointInSelection(const Point& point);
- // Selects no text, all text, or the word at the current cursor position.
+ // Selects no text, keeping the current cursor position and caret affinity.
void ClearSelection();
- void SelectAll();
+
+ // Select the entire text range. If |reversed| is true, the range will end at
+ // the logical beginning of the text; this generally shows the leading portion
+ // of text that overflows its display area.
+ void SelectAll(bool reversed);
+
+ // Selects the word at the current cursor position.
void SelectWord();
const ui::Range& GetCompositionRange() const;
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | ui/gfx/render_text.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698