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

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: Fix impl-side painting issues. 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 // 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 PinchZoomScrollbar(WebKit::WebScrollbar::Orientation orientation, LayerTreeHos t* owner);
18 virtual ~PinchZoomScrollbar() {}
19
20 virtual bool isOverlay() const OVERRIDE;
jamesr 2013/02/26 20:48:46 document what interface this is overriding. Don't
wjmaclean 2013/03/01 15:30:32 Done.
21 virtual int value() const OVERRIDE;
22 virtual WebKit::WebPoint location() const OVERRIDE;
23 virtual WebKit::WebSize size() const OVERRIDE;
24 virtual bool enabled() const OVERRIDE;
25 virtual int maximum() const OVERRIDE;
26 virtual int totalSize() const OVERRIDE;
27 virtual bool isScrollViewScrollbar() const OVERRIDE;
28 virtual bool isScrollableAreaActive() const OVERRIDE;
29 virtual void getTickmarks(WebKit::WebVector<WebKit::WebRect>&) const OVERRIDE {}
30 virtual WebKit::WebScrollbar::ScrollbarControlSize controlSize() const OVERRID E;
31 virtual WebKit::WebScrollbar::ScrollbarPart pressedPart() const OVERRIDE;
32 virtual WebKit::WebScrollbar::ScrollbarPart hoveredPart() const OVERRIDE;
33 virtual WebKit::WebScrollbar::ScrollbarOverlayStyle scrollbarOverlayStyle() co nst OVERRIDE;
34 virtual bool isCustomScrollbar() const OVERRIDE;
35 virtual WebKit::WebScrollbar::Orientation orientation() const OVERRIDE;
36
37 static const int kTrackWidth = 10;
jamesr 2013/02/26 20:48:46 It's not good practice to put a constant's definit
wjmaclean 2013/03/01 15:30:32 Done.
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(PinchZoomScrollbar);
41
42 WebKit::WebScrollbar::Orientation orientation_;
43 LayerTreeHost* owner_;
44 }; // class PinchZoomScrollbar
45
46 } // namespace cc
47 #endif // CC_PINCH_ZOOM_SCROLLBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698