OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006 Apple Computer, 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 25 matching lines...) Expand all Loading... |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class GraphicsContext; | 38 class GraphicsContext; |
39 class IntRect; | 39 class IntRect; |
40 class PlatformGestureEvent; | 40 class PlatformGestureEvent; |
41 class PlatformMouseEvent; | 41 class PlatformMouseEvent; |
42 class ScrollableArea; | 42 class ScrollableArea; |
43 class ScrollbarTheme; | 43 class ScrollbarTheme; |
44 class ScrollView; | 44 class ScrollView; |
45 | 45 |
46 class Scrollbar : public Widget, | 46 class PLATFORM_EXPORT Scrollbar : public Widget, |
47 public ScrollbarThemeClient { | 47 public ScrollbarThemeClient { |
48 | 48 |
49 public: | 49 public: |
50 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation, S
crollbarControlSize); | 50 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation, S
crollbarControlSize); |
51 | 51 |
52 virtual ~Scrollbar(); | 52 virtual ~Scrollbar(); |
53 | 53 |
54 // ScrollbarThemeClient implementation. | 54 // ScrollbarThemeClient implementation. |
55 virtual int x() const { return Widget::x(); } | 55 virtual int x() const { return Widget::x(); } |
56 virtual int y() const { return Widget::y(); } | 56 virtual int y() const { return Widget::y(); } |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isScrollbar()); | 207 ASSERT_WITH_SECURITY_IMPLICATION(!widget || widget->isScrollbar()); |
208 return static_cast<const Scrollbar*>(widget); | 208 return static_cast<const Scrollbar*>(widget); |
209 } | 209 } |
210 | 210 |
211 // This will catch anyone doing an unnecessary cast. | 211 // This will catch anyone doing an unnecessary cast. |
212 void toScrollbar(const Scrollbar*); | 212 void toScrollbar(const Scrollbar*); |
213 | 213 |
214 } // namespace WebCore | 214 } // namespace WebCore |
215 | 215 |
216 #endif // Scrollbar_h | 216 #endif // Scrollbar_h |
OLD | NEW |