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

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

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 | « content/browser/devtools/protocol/input_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/protocol/input_handler.cc
diff --git a/content/browser/devtools/protocol/input_handler.cc b/content/browser/devtools/protocol/input_handler.cc
index 05cff6195a1f7bfba9a53802410c89a60069e45e..d28a1e4b316c184735756928204a24e747f321ee 100644
--- a/content/browser/devtools/protocol/input_handler.cc
+++ b/content/browser/devtools/protocol/input_handler.cc
@@ -25,6 +25,9 @@ void InputHandler::SetRenderViewHost(RenderViewHostImpl* host) {
host_ = host;
}
+void InputHandler::SetClient(scoped_ptr<DevToolsProtocolClient> client) {
+}
+
Response InputHandler::EmulateTouchFromMouseEvent(const std::string& type,
int x,
int y,
@@ -106,6 +109,40 @@ Response InputHandler::EmulateTouchFromMouseEvent(const std::string& type,
return Response::OK();
}
+Response InputHandler::SynthesizePinchGesture(
+ DevToolsCommandId command_id,
+ int x,
+ int y,
+ double scale_factor,
+ const int* relative_speed,
+ const std::string* gesture_source_type) {
+ return Response::InternalError("Not yet implemented");
+}
+
+Response InputHandler::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) {
+ return Response::InternalError("Not yet implemented");
+}
+
+Response InputHandler::SynthesizeTapGesture(
+ DevToolsCommandId command_id,
+ int x,
+ int y,
+ const int* duration,
+ const int* tap_count,
+ const std::string* gesture_source_type) {
+ return Response::InternalError("Not yet implemented");
+}
+
} // namespace input
} // namespace devtools
} // namespace content
« no previous file with comments | « content/browser/devtools/protocol/input_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698