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

Unified Diff: Source/web/WebViewImpl.h

Issue 956133002: [IME] Differentiate s_suppressNextKeypressEvent in WebViewImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Sync. Created 5 years, 10 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.h
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h
index 6048f2b8211a0eb431bd280068b608df9fd21025..96d0bea89b486a5e826bab2d4cb942270d529c4f 100644
--- a/Source/web/WebViewImpl.h
+++ b/Source/web/WebViewImpl.h
@@ -701,8 +701,14 @@ private:
// Webkit expects keyPress events to be suppressed if the associated keyDown
// event was handled. Safari implements this behavior by peeking out the
// associated WM_CHAR event if the keydown was handled. We emulate
- // this behavior by setting this flag if the keyDown was handled.
- bool m_suppressNextKeypressEvent;
+ // this behavior by storing a state to indicate that keyDown has been handled,
+ // and so that the following keyPress event should be suppressed.
+ enum SuppressNextKeypressEvent {
+ Suppress_None, // Don't suppress.
+ Suppress_KeyEventCanceled, // Key event was canceled.
+ Suppress_KeyEventHandled // Key event was handled.
+ };
+ SuppressNextKeypressEvent m_suppressNextKeypressEvent;
// Represents whether or not this object should process incoming IME events.
bool m_imeAcceptEvents;
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698