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

Unified Diff: content/browser/devtools/input_domain_handler.h

Issue 508973003: DevTools: Protocol handler generator for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/input_domain_handler.h
diff --git a/content/browser/devtools/input_domain_handler.h b/content/browser/devtools/input_domain_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..9e8e0841d3a4e24d37f69d1bb6726c909863edd5
--- /dev/null
+++ b/content/browser/devtools/input_domain_handler.h
@@ -0,0 +1,42 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_BROWSER_DEVTOOLS_INPUT_DOMAIN_HANDLER_H_
+#define CONTENT_BROWSER_DEVTOOLS_INPUT_DOMAIN_HANDLER_H_
+
+#include "content/browser/devtools/devtools_protocol_handler.h"
+
+namespace content {
+namespace devtools {
+
+class InputDomainHandler {
+ public:
+ typedef DevToolsProtocolFrontend::Response Response;
+
+ InputDomainHandler();
+ virtual ~InputDomainHandler();
+
+ void OnClientDetached();
+ void SetRenderViewHost(RenderViewHostImpl* host);
+
+ Response EmulateTouchFromMouseEvent(std::string in_type,
dgozman 2014/09/09 14:30:59 Remove "in_" prefix.
vkuzkokov 2014/09/10 10:33:12 Done.
+ int in_x,
+ int in_y,
+ double* in_deltaX,
+ double* in_deltaY,
+ int* in_modifiers,
+ double* in_timestamp,
+ std::string* in_button,
+ int* in_clickCount);
+
+ private:
+ RenderViewHostImpl* host_;
+
+ DISALLOW_COPY_AND_ASSIGN(InputDomainHandler);
+};
+
+} // namespace devtools
+} // namespace content
+
+#endif // CONTENT_BROWSER_DEVTOOLS_INPUT_DOMAIN_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698