Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: chrome/test/chromedriver/basic_types.h

Issue 12764021: [chromedriver] Support clicking an element in sub frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/chromedriver/basic_types.cc » ('j') | chrome/test/chromedriver/element_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/basic_types.h
diff --git a/chrome/test/chromedriver/basic_types.h b/chrome/test/chromedriver/basic_types.h
index 8a623c481d3b944f3001b1a620defe9712170ee0..ac052868cc1c897aac4965cd35c12da47c3861d1 100644
--- a/chrome/test/chromedriver/basic_types.h
+++ b/chrome/test/chromedriver/basic_types.h
@@ -5,12 +5,14 @@
#ifndef CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_
#define CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_
+#include <string>
+
struct WebPoint {
WebPoint();
WebPoint(int x, int y);
~WebPoint();
- void offset(int x_, int y_);
+ void Offset(int x_, int y_);
int x;
int y;
@@ -31,13 +33,27 @@ struct WebRect {
WebRect(const WebPoint& origin, const WebSize& size);
~WebRect();
- int x();
- int y();
- int width();
- int height();
+ int width() const;
+ int height() const;
WebPoint origin;
WebSize size;
};
+struct Frame {
+ Frame();
+ Frame(const std::string& id,
+ const std::string& parent_id,
+ const std::string& name,
+ int index);
+
+ bool IsSubFrame() const;
+ bool HasName() const;
+
+ std::string id;
+ std::string parent_id;
+ std::string name;
+ int index;
+};
+
#endif // CHROME_TEST_CHROMEDRIVER_BASIC_TYPES_H_
« no previous file with comments | « no previous file | chrome/test/chromedriver/basic_types.cc » ('j') | chrome/test/chromedriver/element_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698