summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgozman <dgozman@chromium.org>2015-04-03 11:04:51 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-03 18:05:51 +0000
commit6d9d853fb342ed762b70864fa001b0a55e1d7a04 (patch)
tree7d2d2ea7fe4195d78946964c0b07c6f5b0499bc9
parentd9f33f5b87be431172dd820a7302e1ffd36a8be8 (diff)
downloadchromium_src-6d9d853fb342ed762b70864fa001b0a55e1d7a04.zip
chromium_src-6d9d853fb342ed762b70864fa001b0a55e1d7a04.tar.gz
chromium_src-6d9d853fb342ed762b70864fa001b0a55e1d7a04.tar.bz2
[DevTools] Stubs for Input domain in browser.
BUG=472077 Review URL: https://codereview.chromium.org/1052013003 Cr-Commit-Position: refs/heads/master@{#323772}
-rw-r--r--content/browser/devtools/protocol/input_handler.cc27
-rw-r--r--content/browser/devtools/protocol/input_handler.h21
2 files changed, 48 insertions, 0 deletions
diff --git a/content/browser/devtools/protocol/input_handler.cc b/content/browser/devtools/protocol/input_handler.cc
index d28a1e4..b8d6fbd 100644
--- a/content/browser/devtools/protocol/input_handler.cc
+++ b/content/browser/devtools/protocol/input_handler.cc
@@ -28,6 +28,33 @@ void InputHandler::SetRenderViewHost(RenderViewHostImpl* host) {
void InputHandler::SetClient(scoped_ptr<DevToolsProtocolClient> client) {
}
+Response InputHandler::DispatchKeyEvent(
+ const std::string& type,
+ const int* modifiers,
+ const double* timestamp,
+ const std::string* text,
+ const std::string* unmodified_text,
+ const std::string* key_identifier,
+ const std::string* code,
+ const int* windows_virtual_key_code,
+ const int* native_virtual_key_code,
+ const bool* auto_repeat,
+ const bool* is_keypad,
+ const bool* is_system_key) {
+ return Response::FallThrough();
+}
+
+Response InputHandler::DispatchMouseEvent(
+ const std::string& type,
+ int x,
+ int y,
+ const int* modifiers,
+ const double* timestamp,
+ const std::string* button,
+ const int* click_count) {
+ return Response::FallThrough();
+}
+
Response InputHandler::EmulateTouchFromMouseEvent(const std::string& type,
int x,
int y,
diff --git a/content/browser/devtools/protocol/input_handler.h b/content/browser/devtools/protocol/input_handler.h
index 062ad1e..0965356 100644
--- a/content/browser/devtools/protocol/input_handler.h
+++ b/content/browser/devtools/protocol/input_handler.h
@@ -24,6 +24,27 @@ class InputHandler {
void SetRenderViewHost(RenderViewHostImpl* host);
void SetClient(scoped_ptr<DevToolsProtocolClient> client);
+ Response DispatchKeyEvent(const std::string& type,
+ const int* modifiers,
+ const double* timestamp,
+ const std::string* text,
+ const std::string* unmodified_text,
+ const std::string* key_identifier,
+ const std::string* code,
+ const int* windows_virtual_key_code,
+ const int* native_virtual_key_code,
+ const bool* auto_repeat,
+ const bool* is_keypad,
+ const bool* is_system_key);
+
+ Response DispatchMouseEvent(const std::string& type,
+ int x,
+ int y,
+ const int* modifiers,
+ const double* timestamp,
+ const std::string* button,
+ const int* click_count);
+
Response EmulateTouchFromMouseEvent(const std::string& type,
int x,
int y,