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

Side by Side Diff: cc/pinch_zoom_scrollbar_geometry.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/pinch_zoom_scrollbar.cc ('k') | cc/pinch_zoom_scrollbar_geometry.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_GEOMETRY_H_
6 #define CC_PINCH_ZOOM_SCROLLBAR_GEOMETRY_H_
7
8 #include "cc/cc_export.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebScrollbarThemeGe ometry.h"
10
11 using WebKit::WebScrollbar;
12 using WebKit::WebRect;
13 using WebKit::WebScrollbarThemeGeometry;
14
15 namespace cc {
16
17 class PinchZoomScrollbarGeometry : public WebScrollbarThemeGeometry {
18 public:
19 virtual ~PinchZoomScrollbarGeometry() {}
20
21 static const int kTrackWidth;
22
23 // Implement WebScrollbarThemeGeometry interface.
24 virtual WebScrollbarThemeGeometry* clone() const;
25 virtual int thumbPosition(WebScrollbar* scrollbar);
26 virtual int thumbLength(WebScrollbar* scrollbar);
27 virtual int trackPosition(WebScrollbar* scrollbar);
28 virtual int trackLength(WebScrollbar* scrollbar);
29 virtual bool hasButtons(WebScrollbar* scrollbar);
30 virtual bool hasThumb(WebScrollbar* scrollbar);
31 virtual WebRect trackRect(WebScrollbar* scrollbar);
32 virtual WebRect thumbRect(WebScrollbar* scrollbar);
33 virtual int minimumThumbLength(WebScrollbar* scrollbar);
34 virtual int scrollbarThickness(WebScrollbar* scrollbar);
35 virtual WebRect backButtonStartRect(WebScrollbar* scrollbar);
36 virtual WebRect backButtonEndRect(WebScrollbar* scrollbar);
37 virtual WebRect forwardButtonStartRect(WebScrollbar* scrollbar);
38 virtual WebRect forwardButtonEndRect(WebScrollbar* scrollbar);
39
40 virtual WebRect constrainTrackRectToTrackPieces(WebScrollbar* scrollbar,
41 const WebRect& trackRect);
42
43 virtual void splitTrack(
44 WebScrollbar* scrollbar, const WebRect& track, WebRect& start_track,
45 WebRect& thumb, WebRect& end_track);
46
47 };
48
49 } // namespace WebKit
50 #endif // CC_PINCH_ZOOM_SCROLLBAR_GEOMETRY_H_
OLDNEW
« no previous file with comments | « cc/pinch_zoom_scrollbar.cc ('k') | cc/pinch_zoom_scrollbar_geometry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698