public:
static blink::WebMouseEvent Build(blink::WebInputEvent::Type type);
static blink::WebMouseEvent Build(blink::WebInputEvent::Type type,
- int window_x,
- int window_y,
- int modifiers);
+ int window_x,
+ int window_y,
+ int modifiers);
};
class CONTENT_EXPORT SyntheticWebMouseWheelEventBuilder {
static blink::WebMouseWheelEvent Build(
blink::WebMouseWheelEvent::Phase phase);
static blink::WebMouseWheelEvent Build(float dx,
- float dy,
- int modifiers,
- bool precise);
+ float dy,
+ int modifiers,
+ bool precise);
};
class CONTENT_EXPORT SyntheticWebKeyboardEventBuilder {
public:
static blink::WebGestureEvent Build(
blink::WebInputEvent::Type type,
- blink::WebGestureEvent::SourceDevice sourceDevice);
+ blink::WebGestureEvent::SourceDevice source_device);
static blink::WebGestureEvent BuildScrollBegin(float dx_hint,
- float dy_hint);
+ float dy_hint);
static blink::WebGestureEvent BuildScrollUpdate(float dx,
- float dy,
- int modifiers);
- static blink::WebGestureEvent BuildPinchUpdate(float scale,
- float anchor_x,
- float anchor_y,
+ float dy,
int modifiers);
+ static blink::WebGestureEvent BuildPinchUpdate(
+ float scale,
+ float anchor_x,
+ float anchor_y,
+ int modifiers,
+ blink::WebGestureEvent::SourceDevice source_device);
static blink::WebGestureEvent BuildFling(
float velocity_x,
float velocity_y,
void SetTimestamp(base::TimeDelta timestamp);
};
-class CONTENT_EXPORT SyntheticWebTouchEventBuilder {
- public:
- static SyntheticWebTouchEvent Build(blink::WebInputEvent::Type type);
-};
-
} // namespace content
#endif // CONTENT_COMMON_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H_