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

Side by Side Diff: cc/layers/painted_scrollbar_layer_impl.cc

Issue 106733005: Update overlay scrollbars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment change Created 6 years, 11 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/layers/painted_scrollbar_layer_impl.h ('k') | cc/layers/scrollbar_layer_impl_base.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "cc/layers/painted_scrollbar_layer_impl.h" 5 #include "cc/layers/painted_scrollbar_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "cc/animation/scrollbar_animation_controller.h" 9 #include "cc/animation/scrollbar_animation_controller.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 if (track_length_ == track_length) 162 if (track_length_ == track_length)
163 return; 163 return;
164 track_length_ = track_length; 164 track_length_ = track_length;
165 NoteLayerPropertyChanged(); 165 NoteLayerPropertyChanged();
166 } 166 }
167 167
168 float PaintedScrollbarLayerImpl::TrackLength() const { 168 float PaintedScrollbarLayerImpl::TrackLength() const {
169 return track_length_ + (orientation() == VERTICAL ? vertical_adjust() : 0); 169 return track_length_ + (orientation() == VERTICAL ? vertical_adjust() : 0);
170 } 170 }
171 171
172 bool PaintedScrollbarLayerImpl::IsThumbResizable() const {
173 return false;
174 }
175
172 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { 176 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const {
173 return "cc::PaintedScrollbarLayerImpl"; 177 return "cc::PaintedScrollbarLayerImpl";
174 } 178 }
175 179
176 } // namespace cc 180 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/painted_scrollbar_layer_impl.h ('k') | cc/layers/scrollbar_layer_impl_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698