diff options
author | chrisgao@chromium.org <chrisgao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 22:29:48 +0000 |
---|---|---|
committer | chrisgao@chromium.org <chrisgao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 22:29:48 +0000 |
commit | 39bac0fec2a6ba305095ad8231665cfe1ea9a31f (patch) | |
tree | 43e8a711f1cab44058538c881982c9a244c0e346 /chrome/test/chromedriver/element_util.h | |
parent | 6153b2744c90f8e8bc75781674fd898c97cadc13 (diff) | |
download | chromium_src-39bac0fec2a6ba305095ad8231665cfe1ea9a31f.zip chromium_src-39bac0fec2a6ba305095ad8231665cfe1ea9a31f.tar.gz chromium_src-39bac0fec2a6ba305095ad8231665cfe1ea9a31f.tar.bz2 |
[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
Diffstat (limited to 'chrome/test/chromedriver/element_util.h')
-rw-r--r-- | chrome/test/chromedriver/element_util.h | 43 |
1 files changed, 7 insertions, 36 deletions
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 <string> #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); |