Index: chrome/test/webdriver/session.h |
diff --git a/chrome/test/webdriver/session.h b/chrome/test/webdriver/session.h |
index 9e0b595572217823afff635f1644c901448f873c..7542f8e93e7bb4326fc3a964837e50ca35e0d0df 100644 |
--- a/chrome/test/webdriver/session.h |
+++ b/chrome/test/webdriver/session.h |
@@ -202,11 +202,14 @@ class Session { |
// Scroll the element's region into view and get its location relative to |
// the client's viewport. If |center| is true, the element will be centered |
- // if it is too big to fit in view. |
+ // if it is too big to fit in view. If |verify_clickable_at_middle| is true, |
+ // an error will be returned if the element is not clickable in the middle |
+ // of the given region. |
Error* GetElementRegionInView( |
const WebElementId& element, |
const gfx::Rect& region, |
bool center, |
+ bool verify_clickable_at_middle, |
gfx::Point* location); |
// Gets the size of the element from the given window and frame, even if |
@@ -314,11 +317,16 @@ class Session { |
const std::string& query, |
bool find_one, |
std::vector<WebElementId>* elements); |
+ Error* VerifyElementIsClickable( |
Huyen
2011/07/27 22:23:23
Maybe add comments stating an error is returned if
kkania
2011/07/28 16:44:08
Done.
|
+ const FrameId& frame_id, |
+ const WebElementId& element, |
+ const gfx::Point& location); |
Error* GetElementRegionInViewHelper( |
const FrameId& frame_id, |
const WebElementId& element, |
const gfx::Rect& region, |
bool center, |
+ bool verify_clickable_at_middle, |
gfx::Point* location); |
const std::string id_; |