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

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: Rebase to fix collision with solid colour scrollbars patch. 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
« no previous file with comments | « cc/layer_tree_settings.cc ('k') | cc/pinch_zoom_scrollbar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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_
OLDNEW
« no previous file with comments | « cc/layer_tree_settings.cc ('k') | cc/pinch_zoom_scrollbar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698