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

Side by Side Diff: content/browser/devtools/protocol/input_handler.h

Issue 1143073007: [KeyboardEvent] DOM |Key| support in dispatchKeyEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Instead of copying it reuses other function Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698