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