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 17 matching lines...) Expand all Loading... |
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 "platform/PopupMenu.h" | 32 #include "platform/PopupMenu.h" |
33 | 33 |
34 #include "core/dom/Element.h" | 34 #include "core/dom/Element.h" |
35 #include "core/frame/FrameView.h" | 35 #include "core/frame/FrameView.h" |
36 #include "core/frame/Settings.h" | 36 #include "core/frame/Settings.h" |
37 #include "core/html/HTMLSelectElement.h" | 37 #include "core/html/HTMLSelectElement.h" |
| 38 #include "core/html/forms/PopupMenuClient.h" |
38 #include "core/page/EventHandler.h" | 39 #include "core/page/EventHandler.h" |
39 #include "core/rendering/RenderMenuList.h" | 40 #include "core/rendering/RenderMenuList.h" |
40 #include "core/testing/URLTestHelpers.h" | 41 #include "core/testing/URLTestHelpers.h" |
41 #include "platform/KeyboardCodes.h" | 42 #include "platform/KeyboardCodes.h" |
42 #include "platform/PlatformMouseEvent.h" | 43 #include "platform/PlatformMouseEvent.h" |
43 #include "platform/PopupMenuClient.h" | |
44 #include "platform/RuntimeEnabledFeatures.h" | 44 #include "platform/RuntimeEnabledFeatures.h" |
45 #include "platform/graphics/Color.h" | 45 #include "platform/graphics/Color.h" |
46 #include "platform/scroll/ScrollbarTheme.h" | 46 #include "platform/scroll/ScrollbarTheme.h" |
47 #include "public/platform/Platform.h" | 47 #include "public/platform/Platform.h" |
48 #include "public/platform/WebScreenInfo.h" | 48 #include "public/platform/WebScreenInfo.h" |
49 #include "public/platform/WebString.h" | 49 #include "public/platform/WebString.h" |
50 #include "public/platform/WebURL.h" | 50 #include "public/platform/WebURL.h" |
51 #include "public/platform/WebURLRequest.h" | 51 #include "public/platform/WebURLRequest.h" |
52 #include "public/platform/WebURLResponse.h" | 52 #include "public/platform/WebURLResponse.h" |
53 #include "public/platform/WebUnitTestSupport.h" | 53 #include "public/platform/WebUnitTestSupport.h" |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 ASSERT(menuList); | 603 ASSERT(menuList); |
604 menuList->showPopup(); | 604 menuList->showPopup(); |
605 ASSERT(popupOpen()); | 605 ASSERT(popupOpen()); |
606 PopupListBox* listBox = webView()->selectPopup()->listBox(); | 606 PopupListBox* listBox = webView()->selectPopup()->listBox(); |
607 int ltrWidth = listBox->getRowBaseWidth(0); | 607 int ltrWidth = listBox->getRowBaseWidth(0); |
608 int rtlWidth = listBox->getRowBaseWidth(1); | 608 int rtlWidth = listBox->getRowBaseWidth(1); |
609 EXPECT_LT(rtlWidth, ltrWidth); | 609 EXPECT_LT(rtlWidth, ltrWidth); |
610 } | 610 } |
611 | 611 |
612 } // namespace | 612 } // namespace |
OLD | NEW |