Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: cc/pinch_zoom_scrollbar.h

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revised architecture - complete cl for comments on approach. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 #ifndef CC_PINCH_ZOOM_SCROLLBAR_H_
3 #define CC_PINCH_ZOOM_SCROLLBAR_H_
4
5 #include "cc/cc_export.h"
6 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbar.h"
7
8 namespace cc {
9
10 class LayerTreeHost;
11
12 class CC_EXPORT PinchZoomScrollbar : public WebKit::WebScrollbar {
13 public:
14 PinchZoomScrollbar(WebKit::WebScrollbar::Orientation orientation, LayerTreeHos t* owner);
15 virtual ~PinchZoomScrollbar() {}
16
17 virtual bool isOverlay() const OVERRIDE;
18 virtual int value() const OVERRIDE;
19 virtual WebKit::WebPoint location() const OVERRIDE;
20 virtual WebKit::WebSize size() const OVERRIDE;
21 virtual bool enabled() const OVERRIDE;
22 virtual int maximum() const OVERRIDE;
23 virtual int totalSize() const OVERRIDE;
24 virtual bool isScrollViewScrollbar() const OVERRIDE;
25 virtual bool isScrollableAreaActive() const OVERRIDE;
26 virtual void getTickmarks(WebKit::WebVector<WebKit::WebRect>&) const OVERRIDE {}
27 virtual WebKit::WebScrollbar::ScrollbarControlSize controlSize() const OVERRID E;
28 virtual WebKit::WebScrollbar::ScrollbarPart pressedPart() const OVERRIDE;
29 virtual WebKit::WebScrollbar::ScrollbarPart hoveredPart() const OVERRIDE;
30 virtual WebKit::WebScrollbar::ScrollbarOverlayStyle scrollbarOverlayStyle() co nst OVERRIDE;
31 virtual bool isCustomScrollbar() const OVERRIDE;
32 virtual WebKit::WebScrollbar::Orientation orientation() const OVERRIDE;
33
34 static const int kTrackWidth = 10;
35
36 private:
37 WebKit::WebScrollbar::Orientation orientation_;
38 LayerTreeHost* owner_;
39 }; // class PinchZoomScrollbar
40
41 } // namespace cc
42 #endif // CC_PINCH_ZOOM_SCROLLBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698