Index: content/browser/devtools/protocol/input_handler.h |
diff --git a/content/browser/devtools/protocol/input_handler.h b/content/browser/devtools/protocol/input_handler.h |
index c4de07876bc5e3c6b08e11e8a4ba2c25853544e1..edebfa11ca4dd664be1eb7d58782274d215d5842 100644 |
--- a/content/browser/devtools/protocol/input_handler.h |
+++ b/content/browser/devtools/protocol/input_handler.h |
@@ -8,6 +8,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
#include "content/browser/renderer_host/input/synthetic_gesture.h" |
+#include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
#include "ui/gfx/geometry/size_f.h" |
namespace cc { |
@@ -75,6 +76,7 @@ class InputHandler { |
const int* relative_speed, |
const std::string* gesture_source_type); |
+ // TODO(alexclarke): remove this once the protocol patch lands. |
Response SynthesizeScrollGesture(DevToolsCommandId command_id, |
int x, |
int y, |
@@ -86,6 +88,20 @@ class InputHandler { |
const int* speed, |
const std::string* gesture_source_type); |
+ Response SynthesizeScrollGesture(DevToolsCommandId command_id, |
+ int x, |
+ int y, |
+ const int* x_distance, |
+ const int* y_distance, |
+ const int* x_overscroll, |
+ const int* y_overscroll, |
+ const bool* prevent_fling, |
+ const int* speed, |
+ const std::string* gesture_source_type, |
+ const int* repeat_count, |
+ const int* repeat_delay_ms, |
+ const std::string* interaction_marker_name); |
+ |
Response SynthesizeTapGesture(DevToolsCommandId command_id, |
int x, |
int y, |
@@ -104,6 +120,20 @@ class InputHandler { |
bool send_success, |
SyntheticGesture::Result result); |
+ void SynthesizeRepeatingScroll( |
+ SyntheticSmoothScrollGestureParams gesture_params, |
+ int repeat_count, |
+ base::TimeDelta repeat_delay, |
+ std::string interaction_marker_name, |
+ DevToolsCommandId command_id); |
+ |
+ void OnScrollFinished(SyntheticSmoothScrollGestureParams gesture_params, |
+ int repeat_count, |
+ base::TimeDelta repeat_delay, |
+ std::string interaction_marker_name, |
+ DevToolsCommandId command_id, |
+ SyntheticGesture::Result result); |
+ |
RenderWidgetHostImpl* host_; |
scoped_ptr<Client> client_; |
float page_scale_factor_; |