| 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 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 #include "PopupListBox.h" | 31 #include "core/platform/chromium/PopupListBox.h" |
| 32 | 32 |
| 33 #include <ctype.h> | 33 #include <ctype.h> |
| 34 #include <limits> | 34 #include <limits> |
| 35 #include "CSSValueKeywords.h" | 35 #include "CSSValueKeywords.h" |
| 36 #include "FramelessScrollViewClient.h" | |
| 37 #include "KeyboardCodes.h" | |
| 38 #include "PlatformGestureEvent.h" | 36 #include "PlatformGestureEvent.h" |
| 39 #include "PlatformKeyboardEvent.h" | 37 #include "PlatformKeyboardEvent.h" |
| 40 #include "PlatformMouseEvent.h" | 38 #include "PlatformMouseEvent.h" |
| 41 #include "PlatformScreen.h" | 39 #include "PlatformScreen.h" |
| 42 #include "PlatformTouchEvent.h" | 40 #include "PlatformTouchEvent.h" |
| 43 #include "PlatformWheelEvent.h" | 41 #include "PlatformWheelEvent.h" |
| 44 #include "PopupContainer.h" | |
| 45 #include "PopupMenuChromium.h" | |
| 46 #include "PopupMenuClient.h" | 42 #include "PopupMenuClient.h" |
| 47 #include "RenderTheme.h" | 43 #include "RenderTheme.h" |
| 48 #include "RuntimeEnabledFeatures.h" | 44 #include "RuntimeEnabledFeatures.h" |
| 49 #include "ScrollbarTheme.h" | 45 #include "ScrollbarTheme.h" |
| 46 #include "core/platform/chromium/FramelessScrollViewClient.h" |
| 47 #include "core/platform/chromium/KeyboardCodes.h" |
| 48 #include "core/platform/chromium/PopupContainer.h" |
| 49 #include "core/platform/chromium/PopupMenuChromium.h" |
| 50 #include "core/platform/graphics/Font.h" | 50 #include "core/platform/graphics/Font.h" |
| 51 #include "core/platform/graphics/FontSelector.h" | 51 #include "core/platform/graphics/FontSelector.h" |
| 52 #include "core/platform/graphics/GraphicsContext.h" | 52 #include "core/platform/graphics/GraphicsContext.h" |
| 53 #include "core/platform/graphics/IntRect.h" | 53 #include "core/platform/graphics/IntRect.h" |
| 54 #include "core/platform/graphics/StringTruncator.h" | 54 #include "core/platform/graphics/StringTruncator.h" |
| 55 #include "core/platform/graphics/TextRun.h" | 55 #include "core/platform/graphics/TextRun.h" |
| 56 #include <wtf/CurrentTime.h> | 56 #include <wtf/CurrentTime.h> |
| 57 | 57 |
| 58 namespace WebCore { | 58 namespace WebCore { |
| 59 | 59 |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 { | 909 { |
| 910 return numItems() && IntRect(0, 0, width(), height()).contains(point); | 910 return numItems() && IntRect(0, 0, width(), height()).contains(point); |
| 911 } | 911 } |
| 912 | 912 |
| 913 int PopupListBox::popupContentHeight() const | 913 int PopupListBox::popupContentHeight() const |
| 914 { | 914 { |
| 915 return height(); | 915 return height(); |
| 916 } | 916 } |
| 917 | 917 |
| 918 } // namespace WebCore | 918 } // namespace WebCore |
| OLD | NEW |