Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: content/browser/devtools/protocol/input_handler.h

Issue 846113004: [DevTools] Add stub handlers for synthetic gesture commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change xs/ys parameters to {x/y}{distance/overscroll} Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698