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 blink; | |
61 | |
62 namespace blink { | 60 namespace blink { |
63 | 61 |
64 using namespace WTF::Unicode; | 62 using namespace WTF::Unicode; |
65 | 63 |
66 const int PopupListBox::defaultMaxHeight = 500; | 64 const int PopupListBox::defaultMaxHeight = 500; |
67 static const int maxVisibleRows = 20; | 65 static const int maxVisibleRows = 20; |
68 static const int minEndOfLinePadding = 2; | 66 static const int minEndOfLinePadding = 2; |
69 static const TimeStamp typeAheadTimeoutMs = 1000; | 67 static const TimeStamp typeAheadTimeoutMs = 1000; |
70 | 68 |
71 PopupListBox::PopupListBox(PopupMenuClient* client, bool deviceSupportsTouch) | 69 PopupListBox::PopupListBox(PopupMenuClient* client, bool deviceSupportsTouch) |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 { | 828 { |
831 return numItems() && IntRect(0, 0, width(), height()).contains(point); | 829 return numItems() && IntRect(0, 0, width(), height()).contains(point); |
832 } | 830 } |
833 | 831 |
834 int PopupListBox::popupContentHeight() const | 832 int PopupListBox::popupContentHeight() const |
835 { | 833 { |
836 return height(); | 834 return height(); |
837 } | 835 } |
838 | 836 |
839 } // namespace blink | 837 } // namespace blink |
OLD | NEW |