| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
| 10 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 int* modifiers, | 69 int* modifiers, |
| 70 int* click_count); | 70 int* click_count); |
| 71 | 71 |
| 72 Response SynthesizePinchGesture(DevToolsCommandId command_id, | 72 Response SynthesizePinchGesture(DevToolsCommandId command_id, |
| 73 int x, | 73 int x, |
| 74 int y, | 74 int y, |
| 75 double scale_factor, | 75 double scale_factor, |
| 76 const int* relative_speed, | 76 const int* relative_speed, |
| 77 const std::string* gesture_source_type); | 77 const std::string* gesture_source_type); |
| 78 | 78 |
| 79 // TODO(alexclarke): remove this once the protocol patch lands. | |
| 80 Response SynthesizeScrollGesture(DevToolsCommandId command_id, | |
| 81 int x, | |
| 82 int y, | |
| 83 const int* x_distance, | |
| 84 const int* y_distance, | |
| 85 const int* x_overscroll, | |
| 86 const int* y_overscroll, | |
| 87 const bool* prevent_fling, | |
| 88 const int* speed, | |
| 89 const std::string* gesture_source_type); | |
| 90 | |
| 91 Response SynthesizeScrollGesture(DevToolsCommandId command_id, | 79 Response SynthesizeScrollGesture(DevToolsCommandId command_id, |
| 92 int x, | 80 int x, |
| 93 int y, | 81 int y, |
| 94 const int* x_distance, | 82 const int* x_distance, |
| 95 const int* y_distance, | 83 const int* y_distance, |
| 96 const int* x_overscroll, | 84 const int* x_overscroll, |
| 97 const int* y_overscroll, | 85 const int* y_overscroll, |
| 98 const bool* prevent_fling, | 86 const bool* prevent_fling, |
| 99 const int* speed, | 87 const int* speed, |
| 100 const std::string* gesture_source_type, | 88 const std::string* gesture_source_type, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 base::WeakPtrFactory<InputHandler> weak_factory_; | 129 base::WeakPtrFactory<InputHandler> weak_factory_; |
| 142 | 130 |
| 143 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 131 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 144 }; | 132 }; |
| 145 | 133 |
| 146 } // namespace input | 134 } // namespace input |
| 147 } // namespace devtools | 135 } // namespace devtools |
| 148 } // namespace content | 136 } // namespace content |
| 149 | 137 |
| 150 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ | 138 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ |
| OLD | NEW |