| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google 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 | 33 |
| 34 class Scrollbar; | 34 class Scrollbar; |
| 35 class PLATFORM_EXPORT WebScrollbarImpl final : public WebScrollbar { | 35 class PLATFORM_EXPORT WebScrollbarImpl final : public WebScrollbar { |
| 36 public: | 36 public: |
| 37 static WebScrollbarImpl* create(Scrollbar* scrollbar) | 37 static WebScrollbarImpl* create(Scrollbar* scrollbar) |
| 38 { | 38 { |
| 39 return new WebScrollbarImpl(scrollbar); | 39 return new WebScrollbarImpl(scrollbar); |
| 40 } | 40 } |
| 41 | 41 |
| 42 // Implement WebScrollbar methods | 42 // Implement WebScrollbar methods |
| 43 virtual bool isOverlay() const override; | 43 bool isOverlay() const override; |
| 44 virtual int value() const override; | 44 int value() const override; |
| 45 virtual WebPoint location() const override; | 45 WebPoint location() const override; |
| 46 virtual WebSize size() const override; | 46 WebSize size() const override; |
| 47 virtual bool enabled() const override; | 47 bool enabled() const override; |
| 48 virtual int maximum() const override; | 48 int maximum() const override; |
| 49 virtual int totalSize() const override; | 49 int totalSize() const override; |
| 50 virtual bool isScrollableAreaActive() const override; | 50 bool isScrollableAreaActive() const override; |
| 51 virtual void getTickmarks(WebVector<WebRect>& tickmarks) const override; | 51 void getTickmarks(WebVector<WebRect>& tickmarks) const override; |
| 52 virtual ScrollbarControlSize controlSize() const override; | 52 ScrollbarControlSize controlSize() const override; |
| 53 virtual ScrollbarPart pressedPart() const override; | 53 ScrollbarPart pressedPart() const override; |
| 54 virtual ScrollbarPart hoveredPart() const override; | 54 ScrollbarPart hoveredPart() const override; |
| 55 virtual ScrollbarOverlayStyle scrollbarOverlayStyle() const override; | 55 ScrollbarOverlayStyle scrollbarOverlayStyle() const override; |
| 56 virtual bool isCustomScrollbar() const override; | 56 bool isCustomScrollbar() const override; |
| 57 virtual Orientation orientation() const override; | 57 Orientation orientation() const override; |
| 58 virtual bool isLeftSideVerticalScrollbar() const override; | 58 bool isLeftSideVerticalScrollbar() const override; |
| 59 virtual bool isAlphaLocked() const override; | 59 bool isAlphaLocked() const override; |
| 60 virtual void setIsAlphaLocked(bool) override; | 60 void setIsAlphaLocked(bool) override; |
| 61 virtual float elasticOverscroll() const override; | 61 float elasticOverscroll() const override; |
| 62 virtual void setElasticOverscroll(float) override; | 62 void setElasticOverscroll(float) override; |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 explicit WebScrollbarImpl(Scrollbar*); | 65 explicit WebScrollbarImpl(Scrollbar*); |
| 66 | 66 |
| 67 RefPtrWillBePersistent<Scrollbar> m_scrollbar; | 67 RefPtrWillBePersistent<Scrollbar> m_scrollbar; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace blink | 70 } // namespace blink |
| 71 | 71 |
| 72 #endif | 72 #endif |
| OLD | NEW |