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

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: 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/scrollbar_layer.cc ('k') | cc/scrollbar_layer_impl.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_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 27 matching lines...) Expand all
38 38
39 void set_back_track_resource_id(ResourceProvider::ResourceId id) { 39 void set_back_track_resource_id(ResourceProvider::ResourceId id) {
40 back_track_resource_id_ = id; 40 back_track_resource_id_ = id;
41 } 41 }
42 void set_fore_track_resource_id(ResourceProvider::ResourceId id) { 42 void set_fore_track_resource_id(ResourceProvider::ResourceId id) {
43 fore_track_resource_id_ = id; 43 fore_track_resource_id_ = id;
44 } 44 }
45 void set_thumb_resource_id(ResourceProvider::ResourceId id) { 45 void set_thumb_resource_id(ResourceProvider::ResourceId id) {
46 thumb_resource_id_ = id; 46 thumb_resource_id_ = id;
47 } 47 }
48 bool HasThumbTexture() { return thumb_resource_id_; }
48 49
49 50
50 // ScrollbarLayerImplBase implementation. 51 // ScrollbarLayerImplBase implementation.
51 virtual float CurrentPos() const OVERRIDE; 52 virtual float CurrentPos() const OVERRIDE;
52 virtual int TotalSize() const OVERRIDE; 53 virtual int TotalSize() const OVERRIDE;
53 virtual int Maximum() const OVERRIDE; 54 virtual int Maximum() const OVERRIDE;
54 55
55 void SetCurrentPos(float current_pos) { current_pos_ = current_pos; } 56 void SetCurrentPos(float current_pos) { current_pos_ = current_pos; }
56 void SetTotalSize(int total_size) { total_size_ = total_size; } 57 void SetTotalSize(int total_size) { total_size_ = total_size; }
57 void SetMaximum(int maximum) { maximum_ = maximum; } 58 void SetMaximum(int maximum) { maximum_ = maximum; }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 bool is_scrollable_area_active_; 142 bool is_scrollable_area_active_;
142 bool is_scroll_view_scrollbar_; 143 bool is_scroll_view_scrollbar_;
143 bool enabled_; 144 bool enabled_;
144 bool is_custom_scrollbar_; 145 bool is_custom_scrollbar_;
145 bool is_overlay_scrollbar_; 146 bool is_overlay_scrollbar_;
146 }; 147 };
147 148
148 } 149 }
149 #endif // CC_SCROLLBAR_LAYER_IMPL_H_ 150 #endif // CC_SCROLLBAR_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « 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