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

Unified Diff: cc/layers/scrollbar_layer_impl.cc

Issue 23102003: Note scrollbar layer properties changed when position changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/scrollbar_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/scrollbar_layer_impl.cc
diff --git a/cc/layers/scrollbar_layer_impl.cc b/cc/layers/scrollbar_layer_impl.cc
index 0dcfcdec74114860caf02f5064b3cc972d118ba5..fef5600f99f5c7b2bf23fe6e9565ec7277a3d725 100644
--- a/cc/layers/scrollbar_layer_impl.cc
+++ b/cc/layers/scrollbar_layer_impl.cc
@@ -170,6 +170,16 @@ gfx::Rect ScrollbarLayerImpl::ScrollbarLayerRectToContentRect(
return gfx::ToEnclosingRect(content_rect);
}
+void ScrollbarLayerImpl::SetCurrentPos(float current_pos) {
+ current_pos_ = current_pos;
+ NoteLayerPropertyChanged();
+}
+
+void ScrollbarLayerImpl::SetMaximum(int maximum) {
+ maximum_ = maximum;
danakj 2013/08/13 19:32:40 Yes please early out here if maximum_ == maximum.
+ NoteLayerPropertyChanged();
+}
+
gfx::Rect ScrollbarLayerImpl::ComputeThumbQuadRect() const {
// Thumb extent is the length of the thumb in the scrolling direction, thumb
// thickness is in the perpendicular direction. Here's an example of a
« no previous file with comments | « cc/layers/scrollbar_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698