| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WebPopupMenuImpl.h" | 32 #include "WebPopupMenuImpl.h" |
| 33 | 33 |
| 34 #include <skia/ext/platform_canvas.h> | 34 #include <skia/ext/platform_canvas.h> |
| 35 #include "Cursor.h" | 35 #include "Cursor.h" |
| 36 #include "FrameView.h" | 36 #include "FrameView.h" |
| 37 #include "FramelessScrollView.h" | |
| 38 #include "NotImplemented.h" | 37 #include "NotImplemented.h" |
| 39 #include "PlatformGestureEvent.h" | 38 #include "PlatformGestureEvent.h" |
| 40 #include "PlatformKeyboardEvent.h" | 39 #include "PlatformKeyboardEvent.h" |
| 41 #include "PlatformMouseEvent.h" | 40 #include "PlatformMouseEvent.h" |
| 42 #include "PlatformWheelEvent.h" | 41 #include "PlatformWheelEvent.h" |
| 43 #include "PopupContainer.h" | |
| 44 #include "PopupMenuChromium.h" | |
| 45 #include "SkiaUtils.h" | 42 #include "SkiaUtils.h" |
| 46 #include "WebInputEvent.h" | 43 #include "WebInputEvent.h" |
| 47 #include "WebInputEventConversion.h" | 44 #include "WebInputEventConversion.h" |
| 48 #include "WebRange.h" | 45 #include "WebRange.h" |
| 49 #include "WebViewClient.h" | 46 #include "WebViewClient.h" |
| 50 #include "WebWidgetClient.h" | 47 #include "WebWidgetClient.h" |
| 48 #include "core/platform/chromium/FramelessScrollView.h" |
| 49 #include "core/platform/chromium/PopupContainer.h" |
| 50 #include "core/platform/chromium/PopupMenuChromium.h" |
| 51 #include "core/platform/graphics/IntRect.h" | 51 #include "core/platform/graphics/IntRect.h" |
| 52 #include "painting/GraphicsContextBuilder.h" | 52 #include "painting/GraphicsContextBuilder.h" |
| 53 #include <public/WebRect.h> | 53 #include <public/WebRect.h> |
| 54 | 54 |
| 55 using namespace WebCore; | 55 using namespace WebCore; |
| 56 | 56 |
| 57 namespace WebKit { | 57 namespace WebKit { |
| 58 | 58 |
| 59 // WebPopupMenu --------------------------------------------------------------- | 59 // WebPopupMenu --------------------------------------------------------------- |
| 60 | 60 |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 ASSERT(widget == m_widget); | 400 ASSERT(widget == m_widget); |
| 401 if (m_widget) { | 401 if (m_widget) { |
| 402 m_widget->setClient(0); | 402 m_widget->setClient(0); |
| 403 m_widget = 0; | 403 m_widget = 0; |
| 404 } | 404 } |
| 405 if (m_client) | 405 if (m_client) |
| 406 m_client->closeWidgetSoon(); | 406 m_client->closeWidgetSoon(); |
| 407 } | 407 } |
| 408 | 408 |
| 409 } // namespace WebKit | 409 } // namespace WebKit |
| OLD | NEW |