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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "core/platform/PlatformTouchEvent.h" | 42 #include "core/platform/PlatformTouchEvent.h" |
43 #include "core/platform/PlatformWheelEvent.h" | 43 #include "core/platform/PlatformWheelEvent.h" |
44 #include "core/platform/PopupMenuClient.h" | 44 #include "core/platform/PopupMenuClient.h" |
45 #include "core/platform/ScrollbarTheme.h" | 45 #include "core/platform/ScrollbarTheme.h" |
46 #include "core/platform/chromium/FramelessScrollViewClient.h" | 46 #include "core/platform/chromium/FramelessScrollViewClient.h" |
47 #include "core/platform/chromium/KeyboardCodes.h" | 47 #include "core/platform/chromium/KeyboardCodes.h" |
48 #include "core/platform/graphics/Font.h" | 48 #include "core/platform/graphics/Font.h" |
49 #include "core/platform/graphics/FontCache.h" | 49 #include "core/platform/graphics/FontCache.h" |
50 #include "core/platform/graphics/FontSelector.h" | 50 #include "core/platform/graphics/FontSelector.h" |
51 #include "core/platform/graphics/GraphicsContext.h" | 51 #include "core/platform/graphics/GraphicsContext.h" |
52 #include "core/platform/graphics/IntRect.h" | |
53 #include "core/platform/graphics/StringTruncator.h" | 52 #include "core/platform/graphics/StringTruncator.h" |
54 #include "core/platform/graphics/TextRun.h" | 53 #include "core/platform/graphics/TextRun.h" |
55 #include "core/rendering/RenderTheme.h" | 54 #include "core/rendering/RenderTheme.h" |
| 55 #include "platform/geometry/IntRect.h" |
56 #include "wtf/ASCIICType.h" | 56 #include "wtf/ASCIICType.h" |
57 #include "wtf/CurrentTime.h" | 57 #include "wtf/CurrentTime.h" |
58 #include <limits> | 58 #include <limits> |
59 | 59 |
60 namespace WebCore { | 60 namespace WebCore { |
61 | 61 |
62 using namespace WTF::Unicode; | 62 using namespace WTF::Unicode; |
63 | 63 |
64 static const int labelToIconPadding = 5; | 64 static const int labelToIconPadding = 5; |
65 // Padding height put at the top and bottom of each line. | 65 // Padding height put at the top and bottom of each line. |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 { | 929 { |
930 return numItems() && IntRect(0, 0, width(), height()).contains(point); | 930 return numItems() && IntRect(0, 0, width(), height()).contains(point); |
931 } | 931 } |
932 | 932 |
933 int PopupListBox::popupContentHeight() const | 933 int PopupListBox::popupContentHeight() const |
934 { | 934 { |
935 return height(); | 935 return height(); |
936 } | 936 } |
937 | 937 |
938 } // namespace WebCore | 938 } // namespace WebCore |
OLD | NEW |