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

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: 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
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..5258871721806f81bc9228ea4a8bf5c9f1bc2f78 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<Client> 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* xdistance,
+ const int* ydistance,
+ const int* xoverscroll,
+ const int* yoverscroll,
+ 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

Powered by Google App Engine
This is Rietveld 408576698