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 24 matching lines...) Expand all Loading... |
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/HTMLOptionElement.h" | 37 #include "core/html/HTMLOptionElement.h" |
38 #include "core/html/HTMLSelectElement.h" | 38 #include "core/html/HTMLSelectElement.h" |
39 #include "core/layout/LayoutBox.h" | 39 #include "core/layout/LayoutBox.h" |
40 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
41 #include "core/style/ComputedStyle.h" | 41 #include "core/style/ComputedStyle.h" |
42 #include "platform/geometry/FloatQuad.h" | 42 #include "platform/geometry/FloatQuad.h" |
43 #include "platform/geometry/IntPoint.h" | 43 #include "platform/geometry/IntPoint.h" |
44 #include "platform/text/TextDirection.h" | 44 #include "platform/text/TextDirection.h" |
| 45 #include "platform/wtf/PtrUtil.h" |
45 #include "public/platform/WebMouseEvent.h" | 46 #include "public/platform/WebMouseEvent.h" |
46 #include "public/platform/WebVector.h" | 47 #include "public/platform/WebVector.h" |
47 #include "public/web/WebExternalPopupMenu.h" | 48 #include "public/web/WebExternalPopupMenu.h" |
48 #include "public/web/WebFrameClient.h" | 49 #include "public/web/WebFrameClient.h" |
49 #include "public/web/WebMenuItemInfo.h" | 50 #include "public/web/WebMenuItemInfo.h" |
50 #include "public/web/WebPopupMenuInfo.h" | 51 #include "public/web/WebPopupMenuInfo.h" |
51 #include "web/WebLocalFrameImpl.h" | 52 #include "web/WebLocalFrameImpl.h" |
52 #include "web/WebViewImpl.h" | 53 #include "web/WebViewImpl.h" |
53 #include "wtf/PtrUtil.h" | |
54 | 54 |
55 namespace blink { | 55 namespace blink { |
56 | 56 |
57 ExternalPopupMenu::ExternalPopupMenu(LocalFrame& frame, | 57 ExternalPopupMenu::ExternalPopupMenu(LocalFrame& frame, |
58 HTMLSelectElement& ownerElement, | 58 HTMLSelectElement& ownerElement, |
59 WebViewImpl& webView) | 59 WebViewImpl& webView) |
60 : m_ownerElement(ownerElement), | 60 : m_ownerElement(ownerElement), |
61 m_localFrame(frame), | 61 m_localFrame(frame), |
62 m_webView(webView), | 62 m_webView(webView), |
63 m_dispatchEventTimer( | 63 m_dispatchEventTimer( |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 if (ownerElement.itemIsDisplayNone(*items[i])) | 303 if (ownerElement.itemIsDisplayNone(*items[i])) |
304 continue; | 304 continue; |
305 if (popupMenuItemIndex == i) | 305 if (popupMenuItemIndex == i) |
306 return indexTracker; | 306 return indexTracker; |
307 ++indexTracker; | 307 ++indexTracker; |
308 } | 308 } |
309 return -1; | 309 return -1; |
310 } | 310 } |
311 | 311 |
312 } // namespace blink | 312 } // namespace blink |
OLD | NEW |