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 edb71832eaf8f1a7a739fd9db76b93ee0a18a03d..a60332ac60d895134975d210a8f174bf15ae9e5d 100644 |
| --- a/content/browser/devtools/protocol/input_handler.h |
| +++ b/content/browser/devtools/protocol/input_handler.h |
| @@ -14,6 +14,8 @@ class RenderViewHostImpl; |
| namespace devtools { |
| namespace input { |
| +class Client; |
| + |
| class InputHandler { |
| public: |
| typedef DevToolsProtocolClient::Response Response; |
| @@ -22,6 +24,7 @@ class InputHandler { |
| virtual ~InputHandler(); |
| void SetRenderViewHost(RenderViewHostImpl* host); |
| + void SetClient(scoped_ptr<Client> client); |
| Response EmulateTouchFromMouseEvent(const std::string& type, |
| int x, |
| @@ -33,13 +36,38 @@ class InputHandler { |
| int* modifiers, |
| int* click_count); |
| + Response SynthesizePinchGesture(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, |
| + int x, |
| + int y, |
| + const int* xdistance, |
|
dgozman
2015/02/19 10:04:58
x_distance
|
| + const int* ydistance, |
|
dgozman
2015/02/19 10:04:58
y_distance
|
| + const int* xoverscroll, |
|
dgozman
2015/02/19 10:04:58
x_overscroll
|
| + const int* yoverscroll, |
|
dgozman
2015/02/19 10:04:58
y_overscroll
|
| + const bool* prevent_fling, |
| + const int* speed, |
| + const std::string* gesture_source_type); |
| + |
| + Response SynthesizeTapGesture(DevToolsCommandId command_id, |
| + int x, |
| + int y, |
| + const int* duration, |
| + const int* tap_count, |
| + const std::string* gesture_source_type); |
| + |
| private: |
| RenderViewHostImpl* host_; |
| DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| }; |
| -} // namespace inpue |
| +} // namespace input |
| } // namespace devtools |
| } // namespace content |