| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 class GraphicsContext; | 39 class GraphicsContext; |
| 40 class HostWindow; | 40 class HostWindow; |
| 41 class IntRect; | 41 class IntRect; |
| 42 class PlatformGestureEvent; | 42 class PlatformGestureEvent; |
| 43 class PlatformMouseEvent; | 43 class PlatformMouseEvent; |
| 44 class ScrollAnimatorBase; | 44 class ScrollAnimatorBase; |
| 45 class ScrollableArea; | 45 class ScrollableArea; |
| 46 class ScrollbarTheme; | 46 class ScrollbarTheme; |
| 47 | 47 |
| 48 class PLATFORM_EXPORT Scrollbar : public Widget, public ScrollbarThemeClient { | 48 class PLATFORM_EXPORT Scrollbar : public Widget, public ScrollbarThemeClient, pu
blic DisplayItemClient { |
| 49 public: | 49 public: |
| 50 static Scrollbar* create(ScrollableArea* scrollableArea, ScrollbarOrientatio
n orientation, ScrollbarControlSize size, HostWindow* hostWindow) | 50 static Scrollbar* create(ScrollableArea* scrollableArea, ScrollbarOrientatio
n orientation, ScrollbarControlSize size, HostWindow* hostWindow) |
| 51 { | 51 { |
| 52 return new Scrollbar(scrollableArea, orientation, size, hostWindow); | 52 return new Scrollbar(scrollableArea, orientation, size, hostWindow); |
| 53 } | 53 } |
| 54 | 54 |
| 55 // Theme object ownership remains with the caller and it must outlive the sc
rollbar. | 55 // Theme object ownership remains with the caller and it must outlive the sc
rollbar. |
| 56 static Scrollbar* createForTesting(ScrollableArea* scrollableArea, Scrollbar
Orientation orientation, ScrollbarControlSize size, ScrollbarTheme* theme) | 56 static Scrollbar* createForTesting(ScrollableArea* scrollableArea, Scrollbar
Orientation orientation, ScrollbarControlSize size, ScrollbarTheme* theme) |
| 57 { | 57 { |
| 58 return new Scrollbar(scrollableArea, orientation, size, nullptr, theme); | 58 return new Scrollbar(scrollableArea, orientation, size, nullptr, theme); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 bool m_thumbNeedsRepaint; | 233 bool m_thumbNeedsRepaint; |
| 234 | 234 |
| 235 DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION | 235 DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 238 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 239 | 239 |
| 240 } // namespace blink | 240 } // namespace blink |
| 241 | 241 |
| 242 #endif // Scrollbar_h | 242 #endif // Scrollbar_h |
| OLD | NEW |