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

Side by Side Diff: cc/scrollbar_layer_impl.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: Make OpacityIsAnimating() virtual. 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
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_IMPL_H_ 5 #ifndef CC_SCROLLBAR_LAYER_IMPL_H_
6 #define CC_SCROLLBAR_LAYER_IMPL_H_ 6 #define CC_SCROLLBAR_LAYER_IMPL_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/scrollbar_geometry_fixed_thumb.h" 9 #include "cc/scrollbar_geometry_fixed_thumb.h"
10 #include "cc/scrollbar_layer_impl_base.h" 10 #include "cc/scrollbar_layer_impl_base.h"
(...skipping 21 matching lines...) Expand all
32 32
33 void set_back_track_resource_id(ResourceProvider::ResourceId id) { 33 void set_back_track_resource_id(ResourceProvider::ResourceId id) {
34 back_track_resource_id_ = id; 34 back_track_resource_id_ = id;
35 } 35 }
36 void set_fore_track_resource_id(ResourceProvider::ResourceId id) { 36 void set_fore_track_resource_id(ResourceProvider::ResourceId id) {
37 fore_track_resource_id_ = id; 37 fore_track_resource_id_ = id;
38 } 38 }
39 void set_thumb_resource_id(ResourceProvider::ResourceId id) { 39 void set_thumb_resource_id(ResourceProvider::ResourceId id) {
40 thumb_resource_id_ = id; 40 thumb_resource_id_ = id;
41 } 41 }
42 bool HasThumbTexture() { return thumb_resource_id_; }
42 43
43 44
44 // ScrollbarLayerImplBase implementation. 45 // ScrollbarLayerImplBase implementation.
45 virtual float CurrentPos() const OVERRIDE; 46 virtual float CurrentPos() const OVERRIDE;
46 virtual int TotalSize() const OVERRIDE; 47 virtual int TotalSize() const OVERRIDE;
47 virtual int Maximum() const OVERRIDE; 48 virtual int Maximum() const OVERRIDE;
48 49
49 void SetCurrentPos(float current_pos) { current_pos_ = current_pos; } 50 void SetCurrentPos(float current_pos) { current_pos_ = current_pos; }
50 void SetTotalSize(int total_size) { total_size_ = total_size; } 51 void SetTotalSize(int total_size) { total_size_ = total_size; }
51 void SetMaximum(int maximum) { maximum_ = maximum; } 52 void SetMaximum(int maximum) { maximum_ = maximum; }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 126
126 bool is_scrollable_area_active_; 127 bool is_scrollable_area_active_;
127 bool is_scroll_view_scrollbar_; 128 bool is_scroll_view_scrollbar_;
128 bool enabled_; 129 bool enabled_;
129 bool is_custom_scrollbar_; 130 bool is_custom_scrollbar_;
130 bool is_overlay_scrollbar_; 131 bool is_overlay_scrollbar_;
131 }; 132 };
132 133
133 } 134 }
134 #endif // CC_SCROLLBAR_LAYER_IMPL_H_ 135 #endif // CC_SCROLLBAR_LAYER_IMPL_H_
OLDNEW
« cc/scrollbar_layer.cc ('K') | « cc/scrollbar_layer.cc ('k') | cc/scrollbar_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698