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

Side by Side Diff: cc/scrollbar_layer.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
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #ifndef CC_SCROLLBAR_LAYER_H_ 6 #ifndef CC_SCROLLBAR_LAYER_H_
7 #define CC_SCROLLBAR_LAYER_H_ 7 #define CC_SCROLLBAR_LAYER_H_
8 8
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/contents_scaling_layer.h" 10 #include "cc/contents_scaling_layer.h"
(...skipping 15 matching lines...) Expand all
26 static scoped_refptr<ScrollbarLayer> create( 26 static scoped_refptr<ScrollbarLayer> create(
27 scoped_ptr<WebKit::WebScrollbar>, 27 scoped_ptr<WebKit::WebScrollbar>,
28 scoped_ptr<ScrollbarThemePainter>, 28 scoped_ptr<ScrollbarThemePainter>,
29 scoped_ptr<WebKit::WebScrollbarThemeGeometry>, 29 scoped_ptr<WebKit::WebScrollbarThemeGeometry>,
30 int scrollLayerId); 30 int scrollLayerId);
31 31
32 int scrollLayerId() const { return m_scrollLayerId; } 32 int scrollLayerId() const { return m_scrollLayerId; }
33 void setScrollLayerId(int id); 33 void setScrollLayerId(int id);
34 34
35 WebKit::WebScrollbar::Orientation orientation() const; 35 WebKit::WebScrollbar::Orientation orientation() const;
36 bool isOverlay() const;
36 37
37 // Layer interface 38 // Layer interface
38 virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE; 39 virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE;
39 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering Stats*) OVERRIDE; 40 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, Rendering Stats*) OVERRIDE;
40 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; 41 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE;
41 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; 42 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
42 virtual void calculateContentsScale( 43 virtual void calculateContentsScale(
43 float idealContentsScale, 44 float idealContentsScale,
44 bool animatingTransformToScreen, 45 bool animatingTransformToScreen,
45 float* contentsScaleX, 46 float* contentsScaleX,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 scoped_refptr<CachingBitmapContentLayerUpdater> m_thumbUpdater; 82 scoped_refptr<CachingBitmapContentLayerUpdater> m_thumbUpdater;
82 83
83 // All the parts of the scrollbar except the thumb 84 // All the parts of the scrollbar except the thumb
84 scoped_ptr<LayerUpdater::Resource> m_backTrack; 85 scoped_ptr<LayerUpdater::Resource> m_backTrack;
85 scoped_ptr<LayerUpdater::Resource> m_foreTrack; 86 scoped_ptr<LayerUpdater::Resource> m_foreTrack;
86 scoped_ptr<LayerUpdater::Resource> m_thumb; 87 scoped_ptr<LayerUpdater::Resource> m_thumb;
87 }; 88 };
88 89
89 } 90 }
90 #endif // CC_SCROLLBAR_LAYER_H_ 91 #endif // CC_SCROLLBAR_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698