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 15 matching lines...) Expand all Loading... |
26 #ifndef Scrollbar_h | 26 #ifndef Scrollbar_h |
27 #define Scrollbar_h | 27 #define Scrollbar_h |
28 | 28 |
29 #include "platform/Timer.h" | 29 #include "platform/Timer.h" |
30 #include "platform/Widget.h" | 30 #include "platform/Widget.h" |
31 #include "platform/scroll/ScrollTypes.h" | 31 #include "platform/scroll/ScrollTypes.h" |
32 #include "platform/scroll/ScrollbarThemeClient.h" | 32 #include "platform/scroll/ScrollbarThemeClient.h" |
33 #include "wtf/MathExtras.h" | 33 #include "wtf/MathExtras.h" |
34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
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 PLATFORM_EXPORT Scrollbar : public Widget, | 46 class PLATFORM_EXPORT Scrollbar : public Widget, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 bool m_isAlphaLocked; | 191 bool m_isAlphaLocked; |
192 | 192 |
193 private: | 193 private: |
194 virtual bool isScrollbar() const OVERRIDE { return true; } | 194 virtual bool isScrollbar() const OVERRIDE { return true; } |
195 | 195 |
196 float scrollableAreaCurrentPos() const; | 196 float scrollableAreaCurrentPos() const; |
197 }; | 197 }; |
198 | 198 |
199 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 199 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
200 | 200 |
201 } // namespace WebCore | 201 } // namespace blink |
202 | 202 |
203 #endif // Scrollbar_h | 203 #endif // Scrollbar_h |
OLD | NEW |