summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorvarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 01:19:10 +0000
committervarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 01:19:10 +0000
commit4a3f5a60151cb476f4dc6740606e798cf8b823a9 (patch)
tree8b9d127a1540c0a1f532ddffb737850012736530 /ui
parenta06da298d68e1bd4e3f7f25f90d4786b38a10caf (diff)
downloadchromium_src-4a3f5a60151cb476f4dc6740606e798cf8b823a9.zip
chromium_src-4a3f5a60151cb476f4dc6740606e798cf8b823a9.tar.gz
chromium_src-4a3f5a60151cb476f4dc6740606e798cf8b823a9.tar.bz2
Implement text selection widgets for controlling text selection on touch
interface. We want this functionality on views textfields as well as the webpage. This CL lays out the ground work and implements the text selection interface for view textfield. In a later CL, I intend to implement the TextSelection Interface for RenderWidgetHostViewViews. BUG=none TEST=none Review URL: http://codereview.chromium.org/7465045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r--ui/gfx/render_text.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/render_text.h b/ui/gfx/render_text.h
index ec3c455..40209ea 100644
--- a/ui/gfx/render_text.h
+++ b/ui/gfx/render_text.h
@@ -91,6 +91,8 @@ class UI_API RenderText {
const Rect& display_rect() const { return display_rect_; }
void set_display_rect(const Rect& r) { display_rect_ = r; }
+ const gfx::Point& display_offset() const { return display_offset_; }
+
size_t GetCursorPosition() const;
void SetCursorPosition(const size_t position);
@@ -160,8 +162,6 @@ class UI_API RenderText {
const StyleRanges& style_ranges() const { return style_ranges_; }
- const Point& display_offset() const { return display_offset_; }
-
// Get the cursor position that visually neighbors |position|.
// If |move_by_word| is true, return the neighboring word delimiter position.
virtual size_t GetLeftCursorPosition(size_t position,