diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 15:38:22 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 15:38:22 +0000 |
commit | 165901feb7a36445c98ead4f862617da8ebec2f2 (patch) | |
tree | 63c9712e319c8a582f2234df155364b42bb96e9d /chrome/common/automation_events.cc | |
parent | 4fe853ad8762cafb16801da04976a72e27c6e9f4 (diff) | |
download | chromium_src-165901feb7a36445c98ead4f862617da8ebec2f2.zip chromium_src-165901feb7a36445c98ead4f862617da8ebec2f2.tar.gz chromium_src-165901feb7a36445c98ead4f862617da8ebec2f2.tar.bz2 |
[chromedriver] Determine the element location and click synchronously in the renderer.
This is only the browser-side implementation. In this patch we send some scripts from the client which the renderer evaluates to determine where to move or click the mouse. I tried to keep the renderer code as small and as simple as possible. I plan on eventually removing the script-based location finding in favor of some scrollIntoView-like method in WebKit. Currently scrollIntoView does not work. See http://code.google.com/p/chromium/issues/detail?id=73953.
BUG=chromedriver:22,chromedriver:36,chromedriver:44
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10384023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138479 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/automation_events.cc')
-rw-r--r-- | chrome/common/automation_events.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/common/automation_events.cc b/chrome/common/automation_events.cc new file mode 100644 index 0000000..c252133 --- /dev/null +++ b/chrome/common/automation_events.cc @@ -0,0 +1,24 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/common/automation_events.h" + +ScriptEvaluationRequest::ScriptEvaluationRequest() { +} + +ScriptEvaluationRequest::ScriptEvaluationRequest( + const std::string& script, + const std::string& frame_xpath) + : script(script), + frame_xpath(frame_xpath) { +} + +ScriptEvaluationRequest::~ScriptEvaluationRequest() { +} + +AutomationMouseEvent::AutomationMouseEvent() { +} + +AutomationMouseEvent::~AutomationMouseEvent() { +} |