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

Unified Diff: content/public/browser/native_web_keyboard_event.h

Issue 2387353004: Delay Input.dispatchKeyEvent response until after key event ack. (Closed)
Patch Set: add test, address review comments about docs 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/public/browser/native_web_keyboard_event.h
diff --git a/content/public/browser/native_web_keyboard_event.h b/content/public/browser/native_web_keyboard_event.h
index c31681e864977227cba52c28a19fe8e5d3b8d3e9..7ede8fd9a075a2d950f99faca36e54da05912b32 100644
--- a/content/public/browser/native_web_keyboard_event.h
+++ b/content/public/browser/native_web_keyboard_event.h
@@ -62,6 +62,10 @@ struct CONTENT_EXPORT NativeWebKeyboardEvent :
// it is hit in ime mode.
// Currently, it's only used by Linux and Mac ports.
bool skip_in_browser;
+
+ // True if the event was generated by a call to DevTools
+ // (Input.dispatchKeyEvent), rather than in response to a user's keypress.
+ bool is_synthetic;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698