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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int x() const { return Widget::x(); } | 51 int x() const { return Widget::x(); } |
52 int y() const { return Widget::y(); } | 52 int y() const { return Widget::y(); } |
53 int width() const { return Widget::width(); } | 53 int width() const { return Widget::width(); } |
54 int height() const { return Widget::height(); } | 54 int height() const { return Widget::height(); } |
55 IntSize size() const { return Widget::size(); } | 55 IntSize size() const { return Widget::size(); } |
56 IntPoint location() const { return Widget::location(); } | 56 IntPoint location() const { return Widget::location(); } |
57 | 57 |
58 Widget* parent() const { return Widget::parent(); } | 58 Widget* parent() const { return Widget::parent(); } |
59 Widget* root() const { return Widget::root(); } | 59 Widget* root() const { return Widget::root(); } |
60 | 60 |
61 void removeFromParent(); | |
62 | |
63 void setFrameRect(const IntRect& r) { Widget::setFrameRect(r); } | 61 void setFrameRect(const IntRect& r) { Widget::setFrameRect(r); } |
64 IntRect frameRect() const { return Widget::frameRect(); } | 62 IntRect frameRect() const { return Widget::frameRect(); } |
65 | 63 |
66 void invalidate() { Widget::invalidate(); } | 64 void invalidate() { Widget::invalidate(); } |
67 void invalidateRect(const IntRect&); | 65 void invalidateRect(const IntRect&); |
68 | 66 |
69 ScrollbarOverlayStyle scrollbarOverlayStyle() const; | 67 ScrollbarOverlayStyle scrollbarOverlayStyle() const; |
70 void getTickmarks(Vector<IntRect>&) const; | 68 void getTickmarks(Vector<IntRect>&) const; |
71 bool isScrollableAreaActive() const; | 69 bool isScrollableAreaActive() const; |
72 bool isScrollViewScrollbar() const; | 70 bool isScrollViewScrollbar() const; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 virtual bool isScrollbar() const override { return true; } | 221 virtual bool isScrollbar() const override { return true; } |
224 | 222 |
225 float scrollableAreaCurrentPos() const; | 223 float scrollableAreaCurrentPos() const; |
226 }; | 224 }; |
227 | 225 |
228 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 226 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
229 | 227 |
230 } // namespace blink | 228 } // namespace blink |
231 | 229 |
232 #endif // Scrollbar_h | 230 #endif // Scrollbar_h |
OLD | NEW |