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

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: Added missing files. Created 8 years 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/caching_bitmap_content_layer_updater.h" 9 #include "cc/caching_bitmap_content_layer_updater.h"
10 #include "cc/cc_export.h" 10 #include "cc/cc_export.h"
11 #include "cc/contents_scaling_layer.h" 11 #include "cc/contents_scaling_layer.h"
12 #include <public/WebScrollbar.h> 12 #include <public/WebScrollbar.h>
13 #include <public/WebScrollbarThemeGeometry.h> 13 #include <public/WebScrollbarThemeGeometry.h>
14 #include <public/WebScrollbarThemePainter.h> 14 #include <public/WebScrollbarThemePainter.h>
15 15
16 namespace cc { 16 namespace cc {
17 17
18 class ResourceUpdateQueue; 18 class ResourceUpdateQueue;
19 class Scrollbar; 19 class Scrollbar;
20 class ScrollbarThemeComposite;
21 20
22 class CC_EXPORT ScrollbarLayer : public ContentsScalingLayer { 21 class CC_EXPORT ScrollbarLayer : public ContentsScalingLayer {
23 public: 22 public:
24 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERR IDE; 23 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERR IDE;
25 24
26 static scoped_refptr<ScrollbarLayer> create(scoped_ptr<WebKit::WebScrollbar> , WebKit::WebScrollbarThemePainter, scoped_ptr<WebKit::WebScrollbarThemeGeometry >, int scrollLayerId); 25 static scoped_refptr<ScrollbarLayer> create(scoped_ptr<WebKit::WebScrollbar> , WebKit::WebScrollbarThemePainter, scoped_ptr<WebKit::WebScrollbarThemeGeometry >, int scrollLayerId);
27 26
28 int scrollLayerId() const { return m_scrollLayerId; } 27 int scrollLayerId() const { return m_scrollLayerId; }
29 void setScrollLayerId(int id); 28 void setScrollLayerId(int id);
30 29
(...skipping 30 matching lines...) Expand all
61 scoped_refptr<CachingBitmapContentLayerUpdater> m_thumbUpdater; 60 scoped_refptr<CachingBitmapContentLayerUpdater> m_thumbUpdater;
62 61
63 // All the parts of the scrollbar except the thumb 62 // All the parts of the scrollbar except the thumb
64 scoped_ptr<LayerUpdater::Resource> m_backTrack; 63 scoped_ptr<LayerUpdater::Resource> m_backTrack;
65 scoped_ptr<LayerUpdater::Resource> m_foreTrack; 64 scoped_ptr<LayerUpdater::Resource> m_foreTrack;
66 scoped_ptr<LayerUpdater::Resource> m_thumb; 65 scoped_ptr<LayerUpdater::Resource> m_thumb;
67 }; 66 };
68 67
69 } 68 }
70 #endif // CC_SCROLLBAR_LAYER_H_ 69 #endif // CC_SCROLLBAR_LAYER_H_
OLDNEW
« cc/pinch_zoom_scrollbars_manager.h ('K') | « cc/scrollbar_geometry_fixed_thumb.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698