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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class LocalFrame; | 36 class LocalFrame; |
37 class Node; | 37 class Node; |
38 class RenderBox; | 38 class RenderBox; |
39 class RenderScrollbarPart; | 39 class RenderScrollbarPart; |
40 class RenderStyle; | 40 class RenderStyle; |
41 | 41 |
42 class RenderScrollbar final : public Scrollbar { | 42 class RenderScrollbar final : public Scrollbar { |
43 #if ENABLE(OILPAN) | 43 WILL_BE_USING_PRE_FINALIZER(RenderScrollbar, destroyParts); |
44 USING_PRE_FINALIZER(RenderScrollbar, destroyParts); | |
45 #endif | |
46 public: | 44 public: |
47 static PassRefPtrWillBeRawPtr<Scrollbar> createCustomScrollbar(ScrollableAre
a*, ScrollbarOrientation, Node*, LocalFrame* owningFrame = 0); | 45 static PassRefPtrWillBeRawPtr<Scrollbar> createCustomScrollbar(ScrollableAre
a*, ScrollbarOrientation, Node*, LocalFrame* owningFrame = 0); |
48 virtual ~RenderScrollbar(); | 46 virtual ~RenderScrollbar(); |
49 | 47 |
50 RenderBox* owningRenderer() const; | 48 RenderBox* owningRenderer() const; |
51 | 49 |
52 IntRect buttonRect(ScrollbarPart); | 50 IntRect buttonRect(ScrollbarPart); |
53 IntRect trackRect(int startLength, int endLength); | 51 IntRect trackRect(int startLength, int endLength); |
54 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&); | 52 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&); |
55 | 53 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 RawPtrWillBeMember<LocalFrame> m_owningFrame; | 91 RawPtrWillBeMember<LocalFrame> m_owningFrame; |
94 | 92 |
95 WillBeHeapHashMap<unsigned, RawPtrWillBeMember<RenderScrollbarPart> > m_part
s; | 93 WillBeHeapHashMap<unsigned, RawPtrWillBeMember<RenderScrollbarPart> > m_part
s; |
96 }; | 94 }; |
97 | 95 |
98 DEFINE_TYPE_CASTS(RenderScrollbar, ScrollbarThemeClient, scrollbar, scrollbar->i
sCustomScrollbar(), scrollbar.isCustomScrollbar()); | 96 DEFINE_TYPE_CASTS(RenderScrollbar, ScrollbarThemeClient, scrollbar, scrollbar->i
sCustomScrollbar(), scrollbar.isCustomScrollbar()); |
99 | 97 |
100 } // namespace blink | 98 } // namespace blink |
101 | 99 |
102 #endif // RenderScrollbar_h | 100 #endif // RenderScrollbar_h |
OLD | NEW |