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

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

Issue 7522024: Refactor chromedriver's script execution to reduce amount of custom Value parsing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 5 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.cc
diff --git a/chrome/test/webdriver/commands/webelement_commands.cc b/chrome/test/webdriver/commands/webelement_commands.cc
index 561bd5303764624a9103eca125c58416985e9a32..1d97850f29bfcd9d85435b7b24dd3cc2b5519715 100644
--- a/chrome/test/webdriver/commands/webelement_commands.cc
+++ b/chrome/test/webdriver/commands/webelement_commands.cc
@@ -13,10 +13,9 @@
#include "base/values.h"
#include "chrome/test/webdriver/commands/response.h"
#include "chrome/test/webdriver/session.h"
+#include "chrome/test/webdriver/webdriver_basic_types.h"
#include "chrome/test/webdriver/webdriver_error.h"
#include "third_party/webdriver/atoms.h"
-#include "ui/gfx/point.h"
-#include "ui/gfx/size.h"
namespace webdriver {
@@ -280,7 +279,7 @@ bool ElementLocationInViewCommand::DoesGet() {
}
void ElementLocationInViewCommand::ExecuteGet(Response* const response) {
- gfx::Point location;
+ Point location;
Error* error = session_->GetElementLocationInView(element, &location);
if (error) {
response->SetError(error);
@@ -372,7 +371,7 @@ bool ElementSizeCommand::DoesGet() {
}
void ElementSizeCommand::ExecuteGet(Response* const response) {
- gfx::Size size;
+ Size size;
Error* error = session_->GetElementSize(
session_->current_target(), element, &size);
if (error) {
@@ -570,7 +569,7 @@ Error* ElementValueCommand::DragAndDropFilePaths() const {
paths.push_back(path);
}
- gfx::Point location;
+ Point location;
error = session_->GetClickableLocation(element, &location);
if (error) {
return error;

Powered by Google App Engine
This is Rietveld 408576698