Chromium Code Reviews| 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 cb6a5fcf713961be13014db13d0715b2b82112c3..dfacfcfad86bfb71d56c1d3706e63c5585c1b1d8 100644 |
| --- a/content/browser/devtools/protocol/input_handler.h |
| +++ b/content/browser/devtools/protocol/input_handler.h |
| @@ -69,14 +69,16 @@ class InputHandler { |
| int* modifiers, |
| int* click_count); |
| - Response SynthesizePinchGesture(DevToolsCommandId command_id, |
| + Response SynthesizePinchGesture(int session_id, |
|
dgozman
2015/11/06 22:57:27
Encapsulate session id into DevToolsCommandId.
kozy
2015/11/07 01:54:44
Done.
|
| + DevToolsCommandId command_id, |
| int x, |
| int y, |
| double scale_factor, |
| const int* relative_speed, |
| const std::string* gesture_source_type); |
| - Response SynthesizeScrollGesture(DevToolsCommandId command_id, |
| + Response SynthesizeScrollGesture(int session_id, |
| + DevToolsCommandId command_id, |
| int x, |
| int y, |
| const int* x_distance, |
| @@ -90,7 +92,8 @@ class InputHandler { |
| const int* repeat_delay_ms, |
| const std::string* interaction_marker_name); |
| - Response SynthesizeTapGesture(DevToolsCommandId command_id, |
| + Response SynthesizeTapGesture(int session_id, |
| + DevToolsCommandId command_id, |
| int x, |
| int y, |
| const int* duration, |
| @@ -98,13 +101,16 @@ class InputHandler { |
| const std::string* gesture_source_type); |
| private: |
| - void SendSynthesizePinchGestureResponse(DevToolsCommandId command_id, |
| + void SendSynthesizePinchGestureResponse(int session_id, |
| + DevToolsCommandId command_id, |
| SyntheticGesture::Result result); |
| - void SendSynthesizeScrollGestureResponse(DevToolsCommandId command_id, |
| + void SendSynthesizeScrollGestureResponse(int session_id, |
| + DevToolsCommandId command_id, |
| SyntheticGesture::Result result); |
| - void SendSynthesizeTapGestureResponse(DevToolsCommandId command_id, |
| + void SendSynthesizeTapGestureResponse(int session_id, |
| + DevToolsCommandId command_id, |
| bool send_success, |
| SyntheticGesture::Result result); |
| @@ -113,12 +119,14 @@ class InputHandler { |
| int repeat_count, |
| base::TimeDelta repeat_delay, |
| std::string interaction_marker_name, |
| + int session_id, |
| DevToolsCommandId command_id); |
| void OnScrollFinished(SyntheticSmoothScrollGestureParams gesture_params, |
| int repeat_count, |
| base::TimeDelta repeat_delay, |
| std::string interaction_marker_name, |
| + int session_id, |
| DevToolsCommandId command_id, |
| SyntheticGesture::Result result); |