summaryrefslogtreecommitdiffstats
path: root/content/port
diff options
context:
space:
mode:
authorjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-10 22:18:27 +0000
committerjcivelli@chromium.org <jcivelli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-10 22:18:27 +0000
commitb556c2ea563365710107e788eea58d09239b9b50 (patch)
tree9069761166905b0bb2f7abc1002d81d61897fd84 /content/port
parentf78087aa2c43bb7298d027078b7c353b77ad6e98 (diff)
downloadchromium_src-b556c2ea563365710107e788eea58d09239b9b50.zip
chromium_src-b556c2ea563365710107e788eea58d09239b9b50.tar.gz
chromium_src-b556c2ea563365710107e788eea58d09239b9b50.tar.bz2
Adding selection text direction to SelectionBoundsChanged.
Adding the selection text direction to the notification that the selection bounds have changed. This is used with touch UI. BUG=138944 TEST=All tests should pass. Review URL: https://chromiumcodereview.appspot.com/10855036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r--content/port/browser/render_widget_host_view_port.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index 761126e..bad0f8b 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -11,6 +11,7 @@
#include "content/common/content_export.h"
#include "content/public/browser/render_widget_host_view.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/range/range.h"
#include "ui/surface/transport_dib.h"
@@ -135,9 +136,12 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView {
// Notifies the View that the renderer selection bounds has changed.
// |start_rect| and |end_rect| are the bounds end of the selection in the
- // coordinate system of the render view.
+ // coordinate system of the render view. |start_direction| and |end_direction|
+ // indicates the direction at which the selection was made on touch devices.
virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
- const gfx::Rect& end_rect) {}
+ WebKit::WebTextDirection start_direction,
+ const gfx::Rect& end_rect,
+ WebKit::WebTextDirection end_direction) {}
// Allocate a backing store for this view.
virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;