OLD | NEW |
1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
2 // All rights reserved. | 2 // 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 10 matching lines...) Expand all Loading... |
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
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 #include "config.h" | 30 #include "config.h" |
31 | 31 #include "PopupMenuChromium.h" |
32 #if COMPILER(MSVC) | |
33 __pragma(warning(push, 0)) | |
34 #endif | |
35 #include "PopupMenu.h" | |
36 | 32 |
37 #include "CharacterNames.h" | 33 #include "CharacterNames.h" |
38 #include "ChromeClientChromium.h" | 34 #include "ChromeClientChromium.h" |
39 #include "Document.h" | 35 #include "Document.h" |
40 #include "Font.h" | 36 #include "Font.h" |
41 #include "FrameView.h" | 37 #include "FrameView.h" |
42 #include "FontSelector.h" | 38 #include "FontSelector.h" |
43 #include "Frame.h" | 39 #include "Frame.h" |
44 #include "FramelessScrollView.h" | 40 #include "FramelessScrollView.h" |
45 #include "FramelessScrollViewClient.h" | 41 #include "FramelessScrollViewClient.h" |
46 #include "GraphicsContext.h" | 42 #include "GraphicsContext.h" |
47 #include "IntRect.h" | 43 #include "IntRect.h" |
48 #include "KeyboardCodes.h" | 44 #include "KeyboardCodes.h" |
49 #include "NotImplemented.h" | 45 #include "NotImplemented.h" |
50 #include "Page.h" | 46 #include "Page.h" |
51 #include "PlatformKeyboardEvent.h" | 47 #include "PlatformKeyboardEvent.h" |
52 #include "PlatformMouseEvent.h" | 48 #include "PlatformMouseEvent.h" |
53 #include "PlatformScreen.h" | 49 #include "PlatformScreen.h" |
54 #include "PlatformWheelEvent.h" | 50 #include "PlatformWheelEvent.h" |
| 51 #include "PopupMenu.h" |
55 #include "RenderBlock.h" | 52 #include "RenderBlock.h" |
56 #include "RenderTheme.h" | 53 #include "RenderTheme.h" |
57 #include "ScrollbarTheme.h" | 54 #include "ScrollbarTheme.h" |
58 #include "SystemTime.h" | 55 #include "SystemTime.h" |
59 #include "Widget.h" | 56 #include "Widget.h" |
60 #if COMPILER(MSVC) | |
61 __pragma(warning(pop)) | |
62 #endif | |
63 | |
64 #include "webkit/port/platform/chromium/PopupMenuChromium.h" | |
65 | 57 |
66 using namespace WTF; | 58 using namespace WTF; |
67 using namespace Unicode; | 59 using namespace Unicode; |
68 | 60 |
69 using std::min; | 61 using std::min; |
70 using std::max; | 62 using std::max; |
71 | 63 |
72 namespace WebCore { | 64 namespace WebCore { |
73 | 65 |
74 typedef unsigned long long TimeStamp; | 66 typedef unsigned long long TimeStamp; |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 { | 1103 { |
1112 p.m_popup->listBox()->updateFromElement(); | 1104 p.m_popup->listBox()->updateFromElement(); |
1113 } | 1105 } |
1114 | 1106 |
1115 bool PopupMenu::itemWritingDirectionIsNatural() | 1107 bool PopupMenu::itemWritingDirectionIsNatural() |
1116 { | 1108 { |
1117 return false; | 1109 return false; |
1118 } | 1110 } |
1119 | 1111 |
1120 } // namespace WebCore | 1112 } // namespace WebCore |
OLD | NEW |