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

Unified Diff: content/browser/renderer_host/input/web_input_event_util.h

Issue 1308063007: Generate non-located windowsKeyCode for the WebInputEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase against dependent change Created 5 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/renderer_host/input/web_input_event_util.h
diff --git a/content/browser/renderer_host/input/web_input_event_util.h b/content/browser/renderer_host/input/web_input_event_util.h
index c4b1a8c47a6d2e2101ce0e4afe969fb2de79c7b3..812a2274a3b814ff2adb45320deca6a8ba309d2a 100644
--- a/content/browser/renderer_host/input/web_input_event_util.h
+++ b/content/browser/renderer_host/input/web_input_event_util.h
@@ -11,6 +11,7 @@
#include "ui/events/keycodes/keyboard_codes.h"
namespace ui {
+enum class DomCode;
struct GestureEventData;
struct GestureEventDetails;
class MotionEvent;
@@ -18,14 +19,11 @@ class MotionEvent;
namespace content {
-// Update |event|'s windowsKeyCode and keyIdentifer properties using the
-// provided |windows_key_code|.
-CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier(
- blink::WebKeyboardEvent* event,
- ui::KeyboardCode windows_key_code);
-
int WebEventModifiersToEventFlags(int modifiers);
+blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
+ ui::DomCode code);
+
} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698