OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_PINCH_ZOOM_SCROLLBAR_H_ |
| 6 #define CC_PINCH_ZOOM_SCROLLBAR_H_ |
| 7 |
| 8 #include "cc/cc_export.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h" |
| 10 |
| 11 namespace cc { |
| 12 |
| 13 class LayerTreeHost; |
| 14 |
| 15 class CC_EXPORT PinchZoomScrollbar : public WebKit::WebScrollbar { |
| 16 public: |
| 17 static const float kDefaultOpacity; |
| 18 static const float kFadeDurationInSeconds; |
| 19 |
| 20 PinchZoomScrollbar( |
| 21 WebKit::WebScrollbar::Orientation orientation, |
| 22 LayerTreeHost* owner); |
| 23 virtual ~PinchZoomScrollbar() {} |
| 24 |
| 25 // Implement WebKit::WebScrollbar. |
| 26 virtual bool isOverlay() const; |
| 27 virtual int value() const; |
| 28 virtual WebKit::WebPoint location() const; |
| 29 virtual WebKit::WebSize size() const; |
| 30 virtual bool enabled() const; |
| 31 virtual int maximum() const; |
| 32 virtual int totalSize() const; |
| 33 virtual bool isScrollViewScrollbar() const; |
| 34 virtual bool isScrollableAreaActive() const; |
| 35 virtual void getTickmarks(WebKit::WebVector<WebKit::WebRect>&) const {} |
| 36 virtual WebKit::WebScrollbar::ScrollbarControlSize controlSize() const; |
| 37 virtual WebKit::WebScrollbar::ScrollbarPart pressedPart() const; |
| 38 virtual WebKit::WebScrollbar::ScrollbarPart hoveredPart() const; |
| 39 virtual WebKit::WebScrollbar::ScrollbarOverlayStyle |
| 40 scrollbarOverlayStyle() const; |
| 41 virtual bool isCustomScrollbar() const; |
| 42 virtual WebKit::WebScrollbar::Orientation orientation() const; |
| 43 |
| 44 private: |
| 45 DISALLOW_COPY_AND_ASSIGN(PinchZoomScrollbar); |
| 46 |
| 47 WebKit::WebScrollbar::Orientation orientation_; |
| 48 LayerTreeHost* owner_; |
| 49 }; // class PinchZoomScrollbar |
| 50 |
| 51 } // namespace cc |
| 52 #endif // CC_PINCH_ZOOM_SCROLLBAR_H_ |
OLD | NEW |