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

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: 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_painter.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_SCROLLBAR_LAYER_H_ 5 #ifndef CC_SCROLLBAR_LAYER_H_
6 #define CC_SCROLLBAR_LAYER_H_ 6 #define CC_SCROLLBAR_LAYER_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/contents_scaling_layer.h" 9 #include "cc/contents_scaling_layer.h"
10 #include "cc/layer_updater.h" 10 #include "cc/layer_updater.h"
(...skipping 14 matching lines...) Expand all
25 25
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 scroll_layer_id() const { return scroll_layer_id_; } 32 int scroll_layer_id() const { return scroll_layer_id_; }
33 void SetScrollLayerId(int id); 33 void SetScrollLayerId(int id);
34 34
35 virtual bool OpacityCanAnimateOnImplThread() const OVERRIDE;
36
35 WebKit::WebScrollbar::Orientation Orientation() const; 37 WebKit::WebScrollbar::Orientation Orientation() const;
36 38
37 // Layer interface 39 // Layer interface
38 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) 40 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc)
39 OVERRIDE; 41 OVERRIDE;
40 virtual void Update(ResourceUpdateQueue* queue, 42 virtual void Update(ResourceUpdateQueue* queue,
41 const OcclusionTracker* occlusion, 43 const OcclusionTracker* occlusion,
42 RenderingStats* stats) OVERRIDE; 44 RenderingStats* stats) OVERRIDE;
43 virtual void SetLayerTreeHost(LayerTreeHost* host) OVERRIDE; 45 virtual void SetLayerTreeHost(LayerTreeHost* host) OVERRIDE;
44 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 46 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 90
89 // All the parts of the scrollbar except the thumb 91 // All the parts of the scrollbar except the thumb
90 scoped_ptr<LayerUpdater::Resource> back_track_; 92 scoped_ptr<LayerUpdater::Resource> back_track_;
91 scoped_ptr<LayerUpdater::Resource> fore_track_; 93 scoped_ptr<LayerUpdater::Resource> fore_track_;
92 scoped_ptr<LayerUpdater::Resource> thumb_; 94 scoped_ptr<LayerUpdater::Resource> thumb_;
93 }; 95 };
94 96
95 } // namespace cc 97 } // namespace cc
96 98
97 #endif // CC_SCROLLBAR_LAYER_H_ 99 #endif // CC_SCROLLBAR_LAYER_H_
OLDNEW
« no previous file with comments | « cc/pinch_zoom_scrollbar_painter.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698