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

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

Issue 1146173007: [KeyboardEvent] Cleanup of dispatchKeyEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug227231_devTools
Patch Set: Rebaselined 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 25 matching lines...) Expand all
36 void SetClient(scoped_ptr<Client> client); 36 void SetClient(scoped_ptr<Client> client);
37 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata); 37 void OnSwapCompositorFrame(const cc::CompositorFrameMetadata& frame_metadata);
38 38
39 Response DispatchKeyEvent(const std::string& type, 39 Response DispatchKeyEvent(const std::string& type,
40 const int* modifiers, 40 const int* modifiers,
41 const double* timestamp, 41 const double* timestamp,
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,
47 const int* native_virtual_key_code,
48 const bool* auto_repeat,
49 const bool* is_keypad,
50 const bool* is_system_key);
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, 46 const std::string* key,
60 const int* windows_virtual_key_code, 47 const int* windows_virtual_key_code,
61 const int* native_virtual_key_code, 48 const int* native_virtual_key_code,
62 const bool* auto_repeat, 49 const bool* auto_repeat,
63 const bool* is_keypad, 50 const bool* is_keypad,
64 const bool* is_system_key); 51 const bool* is_system_key);
65 52
66 Response DispatchMouseEvent(const std::string& type, 53 Response DispatchMouseEvent(const std::string& type,
67 int x, 54 int x,
68 int y, 55 int y,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 base::WeakPtrFactory<InputHandler> weak_factory_; 111 base::WeakPtrFactory<InputHandler> weak_factory_;
125 112
126 DISALLOW_COPY_AND_ASSIGN(InputHandler); 113 DISALLOW_COPY_AND_ASSIGN(InputHandler);
127 }; 114 };
128 115
129 } // namespace input 116 } // namespace input
130 } // namespace devtools 117 } // namespace devtools
131 } // namespace content 118 } // namespace content
132 119
133 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_INPUT_HANDLER_H_ 120 #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