| 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 22 matching lines...) Expand all Loading... |
| 33 #include "wtf/MathExtras.h" | 33 #include "wtf/MathExtras.h" |
| 34 #include "wtf/PassRefPtr.h" | 34 #include "wtf/PassRefPtr.h" |
| 35 | 35 |
| 36 namespace blink { | 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 ScrollView; | |
| 44 | 43 |
| 45 class PLATFORM_EXPORT Scrollbar : public Widget { | 44 class PLATFORM_EXPORT Scrollbar : public Widget { |
| 46 | 45 |
| 47 public: | 46 public: |
| 48 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation); | 47 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation); |
| 49 | 48 |
| 50 virtual ~Scrollbar(); | 49 virtual ~Scrollbar(); |
| 51 | 50 |
| 52 int x() const { return Widget::x(); } | 51 int x() const { return Widget::x(); } |
| 53 int y() const { return Widget::y(); } | 52 int y() const { return Widget::y(); } |
| 54 int width() const { return Widget::width(); } | 53 int width() const { return Widget::width(); } |
| 55 int height() const { return Widget::height(); } | 54 int height() const { return Widget::height(); } |
| 56 IntSize size() const { return Widget::size(); } | 55 IntSize size() const { return Widget::size(); } |
| 57 IntPoint location() const { return Widget::location(); } | 56 IntPoint location() const { return Widget::location(); } |
| 58 | 57 |
| 59 Widget* parent() const { return Widget::parent(); } | 58 Widget* parent() const { return Widget::parent(); } |
| 60 Widget* root() const { return Widget::root(); } | 59 Widget* root() const { return Widget::root(); } |
| 61 | 60 |
| 62 void removeFromParent(); | 61 void removeFromParent(); |
| 63 ScrollView* parentScrollView() const; | |
| 64 ScrollView* rootScrollView() const; | |
| 65 | 62 |
| 66 void setFrameRect(const IntRect& r) { Widget::setFrameRect(r); } | 63 void setFrameRect(const IntRect& r) { Widget::setFrameRect(r); } |
| 67 IntRect frameRect() const { return Widget::frameRect(); } | 64 IntRect frameRect() const { return Widget::frameRect(); } |
| 68 | 65 |
| 69 void invalidate() { Widget::invalidate(); } | 66 void invalidate() { Widget::invalidate(); } |
| 70 void invalidateRect(const IntRect&); | 67 void invalidateRect(const IntRect&); |
| 71 | 68 |
| 72 ScrollbarOverlayStyle scrollbarOverlayStyle() const; | 69 ScrollbarOverlayStyle scrollbarOverlayStyle() const; |
| 73 void getTickmarks(Vector<IntRect>&) const; | 70 void getTickmarks(Vector<IntRect>&) const; |
| 74 bool isScrollableAreaActive() const; | 71 bool isScrollableAreaActive() const; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 virtual bool isScrollbar() const OVERRIDE { return true; } | 223 virtual bool isScrollbar() const OVERRIDE { return true; } |
| 227 | 224 |
| 228 float scrollableAreaCurrentPos() const; | 225 float scrollableAreaCurrentPos() const; |
| 229 }; | 226 }; |
| 230 | 227 |
| 231 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 228 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 232 | 229 |
| 233 } // namespace blink | 230 } // namespace blink |
| 234 | 231 |
| 235 #endif // Scrollbar_h | 232 #endif // Scrollbar_h |
| OLD | NEW |