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 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 "web/PopupContainer.h" | 32 #include "web/PopupContainer.h" |
33 | 33 |
34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
35 #include "core/frame/FrameView.h" | 35 #include "core/frame/FrameView.h" |
36 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
| 37 #include "core/html/forms/PopupMenuClient.h" |
37 #include "core/page/Chrome.h" | 38 #include "core/page/Chrome.h" |
38 #include "core/page/ChromeClient.h" | 39 #include "core/page/ChromeClient.h" |
39 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
40 #include "platform/PlatformGestureEvent.h" | 41 #include "platform/PlatformGestureEvent.h" |
41 #include "platform/PlatformKeyboardEvent.h" | 42 #include "platform/PlatformKeyboardEvent.h" |
42 #include "platform/PlatformMouseEvent.h" | 43 #include "platform/PlatformMouseEvent.h" |
43 #include "platform/PlatformScreen.h" | 44 #include "platform/PlatformScreen.h" |
44 #include "platform/PlatformTouchEvent.h" | 45 #include "platform/PlatformTouchEvent.h" |
45 #include "platform/PlatformWheelEvent.h" | 46 #include "platform/PlatformWheelEvent.h" |
46 #include "platform/PopupMenuClient.h" | |
47 #include "platform/UserGestureIndicator.h" | 47 #include "platform/UserGestureIndicator.h" |
48 #include "platform/geometry/IntRect.h" | 48 #include "platform/geometry/IntRect.h" |
49 #include "platform/graphics/GraphicsContext.h" | 49 #include "platform/graphics/GraphicsContext.h" |
50 #include "public/web/WebPopupMenuInfo.h" | 50 #include "public/web/WebPopupMenuInfo.h" |
51 #include "public/web/WebPopupType.h" | 51 #include "public/web/WebPopupType.h" |
52 #include "public/web/WebViewClient.h" | 52 #include "public/web/WebViewClient.h" |
53 #include "web/PopupContainerClient.h" | 53 #include "web/PopupContainerClient.h" |
54 #include "web/WebPopupMenuImpl.h" | 54 #include "web/WebPopupMenuImpl.h" |
55 #include "web/WebViewImpl.h" | 55 #include "web/WebViewImpl.h" |
56 #include <algorithm> | 56 #include <algorithm> |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 } | 558 } |
559 | 559 |
560 IntPoint PopupContainer::convertSelfToChild(const Widget* child, const IntPoint&
point) const | 560 IntPoint PopupContainer::convertSelfToChild(const Widget* child, const IntPoint&
point) const |
561 { | 561 { |
562 IntPoint newPoint = point; | 562 IntPoint newPoint = point; |
563 newPoint.moveBy(-child->location()); | 563 newPoint.moveBy(-child->location()); |
564 return newPoint; | 564 return newPoint; |
565 } | 565 } |
566 | 566 |
567 } // namespace blink | 567 } // namespace blink |
OLD | NEW |