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 kFadeDuration; |
| 19 |
| 20 PinchZoomScrollbar(WebKit::WebScrollbar::Orientation orientation, LayerTreeHos
t* owner); |
| 21 virtual ~PinchZoomScrollbar() {} |
| 22 |
| 23 // Implement WebKit::WebScrollbar. |
| 24 virtual bool isOverlay() const; |
| 25 virtual int value() const; |
| 26 virtual WebKit::WebPoint location() const; |
| 27 virtual WebKit::WebSize size() const; |
| 28 virtual bool enabled() const; |
| 29 virtual int maximum() const; |
| 30 virtual int totalSize() const; |
| 31 virtual bool isScrollViewScrollbar() const; |
| 32 virtual bool isScrollableAreaActive() const; |
| 33 virtual void getTickmarks(WebKit::WebVector<WebKit::WebRect>&) const {} |
| 34 virtual WebKit::WebScrollbar::ScrollbarControlSize controlSize() const; |
| 35 virtual WebKit::WebScrollbar::ScrollbarPart pressedPart() const; |
| 36 virtual WebKit::WebScrollbar::ScrollbarPart hoveredPart() const; |
| 37 virtual WebKit::WebScrollbar::ScrollbarOverlayStyle scrollbarOverlayStyle() co
nst; |
| 38 virtual bool isCustomScrollbar() const; |
| 39 virtual WebKit::WebScrollbar::Orientation orientation() const; |
| 40 |
| 41 private: |
| 42 DISALLOW_COPY_AND_ASSIGN(PinchZoomScrollbar); |
| 43 |
| 44 WebKit::WebScrollbar::Orientation orientation_; |
| 45 LayerTreeHost* owner_; |
| 46 }; // class PinchZoomScrollbar |
| 47 |
| 48 } // namespace cc |
| 49 #endif // CC_PINCH_ZOOM_SCROLLBAR_H_ |
OLD | NEW |