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

Unified Diff: content/browser/devtools/protocol/input_handler.h

Issue 1299643004: Make synthesizeScrollGesture repetable and emit interaction markers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO Created 5 years, 4 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 | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698