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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "platform/scroll/FramelessScrollViewClient.h" | 50 #include "platform/scroll/FramelessScrollViewClient.h" |
51 #include "platform/scroll/ScrollbarTheme.h" | 51 #include "platform/scroll/ScrollbarTheme.h" |
52 #include "platform/text/StringTruncator.h" | 52 #include "platform/text/StringTruncator.h" |
53 #include "platform/text/TextRun.h" | 53 #include "platform/text/TextRun.h" |
54 #include "web/PopupContainer.h" | 54 #include "web/PopupContainer.h" |
55 #include "web/PopupMenuChromium.h" | 55 #include "web/PopupMenuChromium.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 using namespace WebCore; | 60 using namespace blink; |
61 | 61 |
62 namespace blink { | 62 namespace blink { |
63 | 63 |
64 using namespace WTF::Unicode; | 64 using namespace WTF::Unicode; |
65 | 65 |
66 const int PopupListBox::defaultMaxHeight = 500; | 66 const int PopupListBox::defaultMaxHeight = 500; |
67 static const int maxVisibleRows = 20; | 67 static const int maxVisibleRows = 20; |
68 static const int minEndOfLinePadding = 2; | 68 static const int minEndOfLinePadding = 2; |
69 static const TimeStamp typeAheadTimeoutMs = 1000; | 69 static const TimeStamp typeAheadTimeoutMs = 1000; |
70 | 70 |
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 { | 825 { |
826 return numItems() && IntRect(0, 0, width(), height()).contains(point); | 826 return numItems() && IntRect(0, 0, width(), height()).contains(point); |
827 } | 827 } |
828 | 828 |
829 int PopupListBox::popupContentHeight() const | 829 int PopupListBox::popupContentHeight() const |
830 { | 830 { |
831 return height(); | 831 return height(); |
832 } | 832 } |
833 | 833 |
834 } // namespace blink | 834 } // namespace blink |
OLD | NEW |