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

Unified Diff: chrome/test/webdriver/commands/webelement_commands.h

Issue 7055004: File upload API in chromedriver (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed according to the code review Created 9 years, 7 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
Index: chrome/test/webdriver/commands/webelement_commands.h
diff --git a/chrome/test/webdriver/commands/webelement_commands.h b/chrome/test/webdriver/commands/webelement_commands.h
index 5bf8b936ba94ff7c774fbcd2b787178ba1ef00ac..9d5819376ce21a87dccef4080a1255e3658adb52 100644
--- a/chrome/test/webdriver/commands/webelement_commands.h
+++ b/chrome/test/webdriver/commands/webelement_commands.h
@@ -13,8 +13,13 @@
class DictionaryValue;
+namespace gfx {
+ class Point;
+}
+
namespace webdriver {
+class Error;
class Response;
// Handles commands that interact with a web element in the WebDriver REST
@@ -28,6 +33,12 @@ class WebElementCommand : public WebDriverCommand {
virtual bool Init(Response* const response);
protected:
+ Error* GetAttribute(const std::string& key, Value** value) const;
kkania 2011/05/27 20:48:47 put this and the following function in Session ins
nodchip 2011/05/30 04:51:45 Done.
+
+ // Gets a clickable location of the given element. It will be the center
+ // location of the element.
+ Error* GetClickableLocation(gfx::Point* location) const;
+
const std::vector<std::string>& path_segments_;
WebElementId element;
@@ -249,6 +260,12 @@ class ElementValueCommand : public WebElementCommand {
virtual void ExecutePost(Response* const response);
private:
+ // Returns whether the element has a given attribute pair.
+ Error* HasAttribute(const std::string& key, const std::string& value,
+ bool* result) const;
+ Error* DragAndDropFilePaths() const;
+ Error* SendKeys() const;
+
DISALLOW_COPY_AND_ASSIGN(ElementValueCommand);
};

Powered by Google App Engine
This is Rietveld 408576698