OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 IntRect trackRect(int startLength, int endLength) const; | 53 IntRect trackRect(int startLength, int endLength) const; |
54 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&) const; | 54 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&) const; |
55 | 55 |
56 int minimumThumbLength() const; | 56 int minimumThumbLength() const; |
57 | 57 |
58 bool isOverlayScrollbar() const override { return false; } | 58 bool isOverlayScrollbar() const override { return false; } |
59 | 59 |
60 LayoutScrollbarPart* getPart(ScrollbarPart partType) { return m_parts.get(pa
rtType); } | 60 LayoutScrollbarPart* getPart(ScrollbarPart partType) { return m_parts.get(pa
rtType); } |
61 const LayoutScrollbarPart* getPart(ScrollbarPart partType) const { return m_
parts.get(partType); } | 61 const LayoutScrollbarPart* getPart(ScrollbarPart partType) const { return m_
parts.get(partType); } |
62 | 62 |
63 void invalidateDisplayItemClientsOfScrollbarParts(const LayoutBoxModelObject
& paintInvalidationContainer, const LayoutRect& paintInvalidationRect); | 63 void invalidateDisplayItemClientsOfScrollbarParts(const LayoutBoxModelObject
& paintInvalidationContainer); |
64 | 64 |
65 DECLARE_VIRTUAL_TRACE(); | 65 DECLARE_VIRTUAL_TRACE(); |
66 | 66 |
67 protected: | 67 protected: |
68 LayoutScrollbar(ScrollableArea*, ScrollbarOrientation, Node*, LocalFrame*); | 68 LayoutScrollbar(ScrollableArea*, ScrollbarOrientation, Node*, LocalFrame*); |
69 | 69 |
70 private: | 70 private: |
71 friend class Scrollbar; | 71 friend class Scrollbar; |
72 | 72 |
73 void setParent(Widget*) override; | 73 void setParent(Widget*) override; |
(...skipping 20 matching lines...) Expand all Loading... |
94 RawPtrWillBeMember<LocalFrame> m_owningFrame; | 94 RawPtrWillBeMember<LocalFrame> m_owningFrame; |
95 | 95 |
96 HashMap<unsigned, LayoutScrollbarPart*> m_parts; | 96 HashMap<unsigned, LayoutScrollbarPart*> m_parts; |
97 }; | 97 }; |
98 | 98 |
99 DEFINE_TYPE_CASTS(LayoutScrollbar, ScrollbarThemeClient, scrollbar, scrollbar->i
sCustomScrollbar(), scrollbar.isCustomScrollbar()); | 99 DEFINE_TYPE_CASTS(LayoutScrollbar, ScrollbarThemeClient, scrollbar, scrollbar->i
sCustomScrollbar(), scrollbar.isCustomScrollbar()); |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
102 | 102 |
103 #endif // LayoutScrollbar_h | 103 #endif // LayoutScrollbar_h |
OLD | NEW |