From b556c2ea563365710107e788eea58d09239b9b50 Mon Sep 17 00:00:00 2001 From: "jcivelli@chromium.org" Date: Fri, 10 Aug 2012 22:18:27 +0000 Subject: 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 --- content/port/browser/render_widget_host_view_port.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'content/port') 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; -- cgit v1.1