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

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: Incorporate device scale factor, default to 0 totalSize when no root scroll layer. Created 7 years, 9 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 // 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(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698