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

Side by Side 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, 9 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 | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 694
695 bool m_ignoreInputEvents; 695 bool m_ignoreInputEvents;
696 696
697 float m_compositorDeviceScaleFactorOverride; 697 float m_compositorDeviceScaleFactorOverride;
698 WebSize m_rootLayerOffset; 698 WebSize m_rootLayerOffset;
699 float m_rootLayerScale; 699 float m_rootLayerScale;
700 700
701 // Webkit expects keyPress events to be suppressed if the associated keyDown 701 // Webkit expects keyPress events to be suppressed if the associated keyDown
702 // event was handled. Safari implements this behavior by peeking out the 702 // event was handled. Safari implements this behavior by peeking out the
703 // associated WM_CHAR event if the keydown was handled. We emulate 703 // associated WM_CHAR event if the keydown was handled. We emulate
704 // this behavior by setting this flag if the keyDown was handled. 704 // this behavior by storing a state to indicate that keyDown has been handle d,
705 bool m_suppressNextKeypressEvent; 705 // and so that the following keyPress event should be suppressed.
706 enum SuppressNextKeypressEvent {
707 Suppress_None, // Don't suppress.
708 Suppress_KeyEventCanceled, // Key event was canceled.
709 Suppress_KeyEventHandled // Key event was handled.
710 };
711 SuppressNextKeypressEvent m_suppressNextKeypressEvent;
706 712
707 // Represents whether or not this object should process incoming IME events. 713 // Represents whether or not this object should process incoming IME events.
708 bool m_imeAcceptEvents; 714 bool m_imeAcceptEvents;
709 715
710 // The available drag operations (copy, move link...) allowed by the source. 716 // The available drag operations (copy, move link...) allowed by the source.
711 WebDragOperation m_operationsAllowed; 717 WebDragOperation m_operationsAllowed;
712 718
713 // The current drag operation as negotiated by the source and destination. 719 // The current drag operation as negotiated by the source and destination.
714 // When not equal to DragOperationNone, the drag data can be dropped onto th e 720 // When not equal to DragOperationNone, the drag data can be dropped onto th e
715 // current drop target in this WebView (the drop target can accept the drop) . 721 // current drop target in this WebView (the drop target can accept the drop) .
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 }; 780 };
775 781
776 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 782 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
777 // We have no ways to check if the specified WebView is an instance of 783 // We have no ways to check if the specified WebView is an instance of
778 // WebViewImpl because WebViewImpl is the only implementation of WebView. 784 // WebViewImpl because WebViewImpl is the only implementation of WebView.
779 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 785 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
780 786
781 } // namespace blink 787 } // namespace blink
782 788
783 #endif 789 #endif
OLDNEW
« 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