| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright (c) 2011, Google Inc. All rights reserved. | 3 * Copyright (c) 2011, Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 class ChromeClient; | 41 class ChromeClient; |
| 42 class FrameView; | 42 class FrameView; |
| 43 class PopupContainerClient; | 43 class PopupContainerClient; |
| 44 class PopupMenuClient; | 44 class PopupMenuClient; |
| 45 struct WebPopupMenuInfo; | 45 struct WebPopupMenuInfo; |
| 46 | 46 |
| 47 // This class wraps a PopupListBox. It positions the popup, paints the border | 47 // This class wraps a PopupListBox. It positions the popup, paints the border |
| 48 // around it, and forwards input events. | 48 // around it, and forwards input events. |
| 49 // FIXME(skobes): This class can probably be combined with PopupListBox. | 49 // FIXME(skobes): This class can probably be combined with PopupListBox. |
| 50 class PopupContainer FINAL : public Widget { | 50 class PopupContainer final : public Widget { |
| 51 public: | 51 public: |
| 52 static PassRefPtr<PopupContainer> create(PopupMenuClient*, bool deviceSuppor
tsTouch); | 52 static PassRefPtr<PopupContainer> create(PopupMenuClient*, bool deviceSuppor
tsTouch); |
| 53 | 53 |
| 54 // Whether a key event should be sent to this popup. | 54 // Whether a key event should be sent to this popup. |
| 55 bool isInterestedInEventForKey(int keyCode); | 55 bool isInterestedInEventForKey(int keyCode); |
| 56 | 56 |
| 57 // Widget | 57 // Widget |
| 58 virtual void paint(GraphicsContext*, const IntRect&) OVERRIDE; | 58 virtual void paint(GraphicsContext*, const IntRect&) override; |
| 59 virtual void hide() OVERRIDE; | 59 virtual void hide() override; |
| 60 virtual HostWindow* hostWindow() const OVERRIDE; | 60 virtual HostWindow* hostWindow() const override; |
| 61 virtual void invalidateRect(const IntRect&) OVERRIDE; | 61 virtual void invalidateRect(const IntRect&) override; |
| 62 virtual IntPoint convertChildToSelf(const Widget* child, const IntPoint&) co
nst OVERRIDE; | 62 virtual IntPoint convertChildToSelf(const Widget* child, const IntPoint&) co
nst override; |
| 63 virtual IntPoint convertSelfToChild(const Widget* child, const IntPoint&) co
nst OVERRIDE; | 63 virtual IntPoint convertSelfToChild(const Widget* child, const IntPoint&) co
nst override; |
| 64 | 64 |
| 65 // PopupContainer methods | 65 // PopupContainer methods |
| 66 | 66 |
| 67 bool handleMouseDownEvent(const PlatformMouseEvent&); | 67 bool handleMouseDownEvent(const PlatformMouseEvent&); |
| 68 bool handleMouseMoveEvent(const PlatformMouseEvent&); | 68 bool handleMouseMoveEvent(const PlatformMouseEvent&); |
| 69 bool handleMouseReleaseEvent(const PlatformMouseEvent&); | 69 bool handleMouseReleaseEvent(const PlatformMouseEvent&); |
| 70 bool handleWheelEvent(const PlatformWheelEvent&); | 70 bool handleWheelEvent(const PlatformWheelEvent&); |
| 71 bool handleKeyEvent(const PlatformKeyboardEvent&); | 71 bool handleKeyEvent(const PlatformKeyboardEvent&); |
| 72 bool handleTouchEvent(const PlatformTouchEvent&); | 72 bool handleTouchEvent(const PlatformTouchEvent&); |
| 73 bool handleGestureEvent(const PlatformGestureEvent&); | 73 bool handleGestureEvent(const PlatformGestureEvent&); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 // Whether the popup is currently open. | 165 // Whether the popup is currently open. |
| 166 bool m_popupOpen; | 166 bool m_popupOpen; |
| 167 | 167 |
| 168 PopupContainerClient* m_client; | 168 PopupContainerClient* m_client; |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace blink | 171 } // namespace blink |
| 172 | 172 |
| 173 #endif | 173 #endif |
| OLD | NEW |