OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ |
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" | 9 #include "content/browser/devtools/protocol/devtools_protocol_dispatcher.h" |
10 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const std::string* text, | 42 const std::string* text, |
43 const std::string* unmodified_text, | 43 const std::string* unmodified_text, |
44 const std::string* key_identifier, | 44 const std::string* key_identifier, |
45 const std::string* code, | 45 const std::string* code, |
46 const int* windows_virtual_key_code, | 46 const int* windows_virtual_key_code, |
47 const int* native_virtual_key_code, | 47 const int* native_virtual_key_code, |
48 const bool* auto_repeat, | 48 const bool* auto_repeat, |
49 const bool* is_keypad, | 49 const bool* is_keypad, |
50 const bool* is_system_key); | 50 const bool* is_system_key); |
51 | 51 |
| 52 Response DispatchKeyEvent(const std::string& type, |
| 53 const int* modifiers, |
| 54 const double* timestamp, |
| 55 const std::string* text, |
| 56 const std::string* unmodified_text, |
| 57 const std::string* key_identifier, |
| 58 const std::string* code, |
| 59 const std::string* key, |
| 60 const int* windows_virtual_key_code, |
| 61 const int* native_virtual_key_code, |
| 62 const bool* auto_repeat, |
| 63 const bool* is_keypad, |
| 64 const bool* is_system_key); |
| 65 |
52 Response DispatchMouseEvent(const std::string& type, | 66 Response DispatchMouseEvent(const std::string& type, |
53 int x, | 67 int x, |
54 int y, | 68 int y, |
55 const int* modifiers, | 69 const int* modifiers, |
56 const double* timestamp, | 70 const double* timestamp, |
57 const std::string* button, | 71 const std::string* button, |
58 const int* click_count); | 72 const int* click_count); |
59 | 73 |
60 Response EmulateTouchFromMouseEvent(const std::string& type, | 74 Response EmulateTouchFromMouseEvent(const std::string& type, |
61 int x, | 75 int x, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 base::WeakPtrFactory<InputHandler> weak_factory_; | 124 base::WeakPtrFactory<InputHandler> weak_factory_; |
111 | 125 |
112 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 126 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
113 }; | 127 }; |
114 | 128 |
115 } // namespace input | 129 } // namespace input |
116 } // namespace devtools | 130 } // namespace devtools |
117 } // namespace content | 131 } // namespace content |
118 | 132 |
119 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ | 133 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ |
OLD | NEW |