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

Unified Diff: content/browser/renderer_host/native_web_keyboard_event_android.cc

Issue 2387353004: Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: rebase, make sure that tests build and run Created 4 years, 2 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/native_web_keyboard_event_android.cc
diff --git a/content/browser/renderer_host/native_web_keyboard_event_android.cc b/content/browser/renderer_host/native_web_keyboard_event_android.cc
index 94f3a4ac0be0ed69b6464a0c3b9ae309d5f3992f..be5f9913103186567966b77621eaa9e961c20eef 100644
--- a/content/browser/renderer_host/native_web_keyboard_event_android.cc
+++ b/content/browser/renderer_host/native_web_keyboard_event_android.cc
@@ -26,7 +26,8 @@ namespace content {
NativeWebKeyboardEvent::NativeWebKeyboardEvent()
: os_event(nullptr),
- skip_in_browser(false) {
+ skip_in_browser(false),
+ is_synthetic(false) {
}
NativeWebKeyboardEvent::NativeWebKeyboardEvent(
@@ -49,7 +50,8 @@ NativeWebKeyboardEvent::NativeWebKeyboardEvent(
unicode_character,
is_system_key)),
os_event(nullptr),
- skip_in_browser(false) {
+ skip_in_browser(false),
+ is_synthetic(false) {
if (!android_key_event.is_null())
os_event = NewGlobalRefForKeyEvent(android_key_event.obj());
}
@@ -58,7 +60,8 @@ NativeWebKeyboardEvent::NativeWebKeyboardEvent(
const NativeWebKeyboardEvent& other)
: WebKeyboardEvent(other),
os_event(NewGlobalRefForKeyEvent(other.os_event)),
- skip_in_browser(other.skip_in_browser) {
+ skip_in_browser(other.skip_in_browser),
+ is_synthetic(other.is_synthetic) {
}
NativeWebKeyboardEvent& NativeWebKeyboardEvent::operator=(
@@ -67,6 +70,7 @@ NativeWebKeyboardEvent& NativeWebKeyboardEvent::operator=(
os_event = NewGlobalRefForKeyEvent(other.os_event);
skip_in_browser = other.skip_in_browser;
+ is_synthetic = other.is_synthetic;
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698