OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011, Google Inc. All rights reserved. | 2 * Copyright (c) 2011, 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual bool isInterestedInEventForKey(int keyCode); | 55 virtual bool isInterestedInEventForKey(int keyCode); |
56 | 56 |
57 // FramelessScrollView | 57 // FramelessScrollView |
58 virtual void paint(GraphicsContext*, const IntRect&); | 58 virtual void paint(GraphicsContext*, const IntRect&); |
59 virtual void hide(); | 59 virtual void hide(); |
60 virtual bool handleMouseDownEvent(const PlatformMouseEvent&); | 60 virtual bool handleMouseDownEvent(const PlatformMouseEvent&); |
61 virtual bool handleMouseMoveEvent(const PlatformMouseEvent&); | 61 virtual bool handleMouseMoveEvent(const PlatformMouseEvent&); |
62 virtual bool handleMouseReleaseEvent(const PlatformMouseEvent&); | 62 virtual bool handleMouseReleaseEvent(const PlatformMouseEvent&); |
63 virtual bool handleWheelEvent(const PlatformWheelEvent&); | 63 virtual bool handleWheelEvent(const PlatformWheelEvent&); |
64 virtual bool handleKeyEvent(const PlatformKeyboardEvent&); | 64 virtual bool handleKeyEvent(const PlatformKeyboardEvent&); |
65 #if ENABLE(TOUCH_EVENTS) | |
66 virtual bool handleTouchEvent(const PlatformTouchEvent&); | 65 virtual bool handleTouchEvent(const PlatformTouchEvent&); |
67 #endif | |
68 virtual bool handleGestureEvent(const PlatformGestureEvent&); | 66 virtual bool handleGestureEvent(const PlatformGestureEvent&); |
69 | 67 |
70 // PopupContainer methods | 68 // PopupContainer methods |
71 | 69 |
72 // Show the popup | 70 // Show the popup |
73 void showPopup(FrameView*); | 71 void showPopup(FrameView*); |
74 | 72 |
75 // Show the popup in the specified rect for the specified frame. | 73 // Show the popup in the specified rect for the specified frame. |
76 // Note: this code was somehow arbitrarily factored-out of the Popup class | 74 // Note: this code was somehow arbitrarily factored-out of the Popup class |
77 // so WebViewImpl can create a PopupContainer. This method is used for | 75 // so WebViewImpl can create a PopupContainer. This method is used for |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // the actual popup position through chromeClient()). | 147 // the actual popup position through chromeClient()). |
150 IntRect m_originalFrameRect; | 148 IntRect m_originalFrameRect; |
151 | 149 |
152 // Whether the popup is currently open. | 150 // Whether the popup is currently open. |
153 bool m_popupOpen; | 151 bool m_popupOpen; |
154 }; | 152 }; |
155 | 153 |
156 } // namespace WebCore | 154 } // namespace WebCore |
157 | 155 |
158 #endif | 156 #endif |
OLD | NEW |