summaryrefslogtreecommitdiff
path: root/chromium/content/common/input/synthetic_web_input_event_builders.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/input/synthetic_web_input_event_builders.h')
-rw-r--r--chromium/content/common/input/synthetic_web_input_event_builders.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/chromium/content/common/input/synthetic_web_input_event_builders.h b/chromium/content/common/input/synthetic_web_input_event_builders.h
index 9c29e98bdd0..608123f4266 100644
--- a/chromium/content/common/input/synthetic_web_input_event_builders.h
+++ b/chromium/content/common/input/synthetic_web_input_event_builders.h
@@ -12,6 +12,7 @@
#include "third_party/blink/public/platform/web_keyboard_event.h"
#include "third_party/blink/public/platform/web_mouse_wheel_event.h"
#include "third_party/blink/public/platform/web_touch_event.h"
+#include "ui/events/types/scroll_types.h"
// Provides sensible creation of default WebInputEvents for testing purposes.
@@ -33,22 +34,22 @@ class CONTENT_EXPORT SyntheticWebMouseWheelEventBuilder {
public:
static blink::WebMouseWheelEvent Build(
blink::WebMouseWheelEvent::Phase phase);
- static blink::WebMouseWheelEvent Build(float x,
- float y,
- float dx,
- float dy,
- int modifiers,
- bool precise,
- bool scroll_by_page = false);
- static blink::WebMouseWheelEvent Build(float x,
- float y,
- float global_x,
- float global_y,
- float dx,
- float dy,
- int modifiers,
- bool precise,
- bool scroll_by_page = false);
+ static blink::WebMouseWheelEvent Build(
+ float x,
+ float y,
+ float dx,
+ float dy,
+ int modifiers,
+ ui::input_types::ScrollGranularity delta_units);
+ static blink::WebMouseWheelEvent Build(
+ float x,
+ float y,
+ float global_x,
+ float global_y,
+ float dx,
+ float dy,
+ int modifiers,
+ ui::input_types::ScrollGranularity delta_units);
};
class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder {