| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class PLATFORM_EXPORT Scrollbar final : public Widget { | 44 class PLATFORM_EXPORT Scrollbar final : public Widget { |
| 45 public: | 45 public: |
| 46 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation); | 46 static PassRefPtr<Scrollbar> create(ScrollableArea*, ScrollbarOrientation); |
| 47 | 47 |
| 48 virtual ~Scrollbar(); | 48 virtual ~Scrollbar(); |
| 49 | 49 |
| 50 void invalidateRect(const IntRect&); | 50 void invalidateRect(const IntRect&); |
| 51 | 51 |
| 52 ScrollbarOverlayStyle scrollbarOverlayStyle() const; | 52 ScrollbarOverlayStyle scrollbarOverlayStyle() const; |
| 53 void getTickmarks(Vector<IntRect>&) const; | |
| 54 bool isScrollableAreaActive() const; | 53 bool isScrollableAreaActive() const; |
| 55 | 54 |
| 56 ScrollbarOrientation orientation() const { return m_orientation; } | 55 ScrollbarOrientation orientation() const { return m_orientation; } |
| 57 bool isLeftSideVerticalScrollbar() const; | 56 bool isLeftSideVerticalScrollbar() const; |
| 58 | 57 |
| 59 int value() const { return lroundf(m_currentPos); } | 58 int value() const { return lroundf(m_currentPos); } |
| 60 float currentPos() const { return m_currentPos; } | 59 float currentPos() const { return m_currentPos; } |
| 61 int visibleSize() const { return m_visibleSize; } | 60 int visibleSize() const { return m_visibleSize; } |
| 62 int totalSize() const { return m_totalSize; } | 61 int totalSize() const { return m_totalSize; } |
| 63 int maximum() const { return m_totalSize - m_visibleSize; } | 62 int maximum() const { return m_totalSize - m_visibleSize; } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 virtual bool isScrollbar() const override { return true; } | 180 virtual bool isScrollbar() const override { return true; } |
| 182 | 181 |
| 183 float scrollableAreaCurrentPos() const; | 182 float scrollableAreaCurrentPos() const; |
| 184 }; | 183 }; |
| 185 | 184 |
| 186 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 185 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 187 | 186 |
| 188 } // namespace blink | 187 } // namespace blink |
| 189 | 188 |
| 190 #endif // Scrollbar_h | 189 #endif // Scrollbar_h |
| OLD | NEW |