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

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: Fixing test, reducing non-essential deltas. 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | Source/web/WebViewImpl.cpp » ('J')
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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 691
692 bool m_ignoreInputEvents; 692 bool m_ignoreInputEvents;
693 693
694 float m_compositorDeviceScaleFactorOverride; 694 float m_compositorDeviceScaleFactorOverride;
695 WebSize m_rootLayerOffset; 695 WebSize m_rootLayerOffset;
696 float m_rootLayerScale; 696 float m_rootLayerScale;
697 697
698 // Webkit expects keyPress events to be suppressed if the associated keyDown 698 // Webkit expects keyPress events to be suppressed if the associated keyDown
699 // event was handled. Safari implements this behavior by peeking out the 699 // event was handled. Safari implements this behavior by peeking out the
700 // associated WM_CHAR event if the keydown was handled. We emulate 700 // associated WM_CHAR event if the keydown was handled. We emulate
701 // this behavior by setting this flag if the keyDown was handled. 701 // this behavior by storing a state to indicate that keyDown has been handle d,
702 bool m_suppressNextKeypressEvent; 702 // and so that the following keyPress event should be suppressed.
703 enum SuppressNextKeypressEvent {
704 Suppress_None, // Don't suppress.
705 Suppress_KeyEventCanceled, // Key event was canceled.
706 Suppress_KeyEventHandled // Key event was handled.
707 };
708 SuppressNextKeypressEvent m_suppressNextKeypressEvent;
703 709
704 // Represents whether or not this object should process incoming IME events. 710 // Represents whether or not this object should process incoming IME events.
705 bool m_imeAcceptEvents; 711 bool m_imeAcceptEvents;
706 712
707 // The available drag operations (copy, move link...) allowed by the source. 713 // The available drag operations (copy, move link...) allowed by the source.
708 WebDragOperation m_operationsAllowed; 714 WebDragOperation m_operationsAllowed;
709 715
710 // The current drag operation as negotiated by the source and destination. 716 // The current drag operation as negotiated by the source and destination.
711 // When not equal to DragOperationNone, the drag data can be dropped onto th e 717 // When not equal to DragOperationNone, the drag data can be dropped onto th e
712 // current drop target in this WebView (the drop target can accept the drop) . 718 // current drop target in this WebView (the drop target can accept the drop) .
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 }; 775 };
770 776
771 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
772 // We have no ways to check if the specified WebView is an instance of 778 // We have no ways to check if the specified WebView is an instance of
773 // WebViewImpl because WebViewImpl is the only implementation of WebView. 779 // WebViewImpl because WebViewImpl is the only implementation of WebView.
774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
775 781
776 } // namespace blink 782 } // namespace blink
777 783
778 #endif 784 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | Source/web/WebViewImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698