From 39bac0fec2a6ba305095ad8231665cfe1ea9a31f Mon Sep 17 00:00:00 2001 From: "chrisgao@chromium.org" Date: Fri, 25 Jan 2013 22:29:48 +0000 Subject: [chromedriver] Implement commands: mouseClick, mouseDoubleClick, mouseButtonDown, mouseButtonUp, and mouseMoveTo. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11746011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178919 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/chromedriver/element_util.h | 43 ++++++--------------------------- 1 file changed, 7 insertions(+), 36 deletions(-) (limited to 'chrome/test/chromedriver/element_util.h') diff --git a/chrome/test/chromedriver/element_util.h b/chrome/test/chromedriver/element_util.h index ad893e0..e0c1357 100644 --- a/chrome/test/chromedriver/element_util.h +++ b/chrome/test/chromedriver/element_util.h @@ -8,6 +8,7 @@ #include #include "base/memory/scoped_ptr.h" +#include "chrome/test/chromedriver/basic_types.h" namespace base { class DictionaryValue; @@ -18,41 +19,6 @@ class Value; struct Session; class Status; -struct WebPoint { - WebPoint(); - WebPoint(int x, int y); - ~WebPoint(); - - void offset(int x_, int y_); - - int x; - int y; -}; - -struct WebSize { - WebSize(); - WebSize(int width, int height); - ~WebSize(); - - int width; - int height; -}; - -struct WebRect { - WebRect(); - WebRect(int x, int y, int width, int height); - WebRect(const WebPoint& origin, const WebSize& size); - ~WebRect(); - - int x(); - int y(); - int width(); - int height(); - - WebPoint origin; - WebSize size; -}; - base::DictionaryValue* CreateElement(const std::string& id); // |id| could be null when no root element is given. @@ -118,10 +84,15 @@ Status ToggleOptionElement( Session* session, const std::string& id); +Status ScrollElementIntoView( + Session* session, + const std::string& id, + WebPoint* location); + Status ScrollElementRegionIntoView( Session* session, const std::string& id, - WebRect* region, + const WebRect& region, bool center, WebPoint* location); -- cgit v1.1