OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |