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

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: |const scoped_ptr<Client>&| -> |scoped_ptr<DevToolsProtocolClient>| 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..062ad1e5493f9fce085307ed9b3e41043316275f 100644
--- a/content/browser/devtools/protocol/input_handler.h
+++ b/content/browser/devtools/protocol/input_handler.h
@@ -22,6 +22,7 @@ class InputHandler {
virtual ~InputHandler();
void SetRenderViewHost(RenderViewHostImpl* host);
+ void SetClient(scoped_ptr<DevToolsProtocolClient> client);
Response EmulateTouchFromMouseEvent(const std::string& type,
int x,
@@ -33,13 +34,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* x_distance,
+ const int* y_distance,
+ const int* x_overscroll,
+ const int* 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