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

Side by Side Diff: cc/layers/scrollbar_layer_impl_base.h

Issue 608223002: [Android]Increase Scrollbar fade delay on Resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/scrollbar_layer_impl_base.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 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 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ 5 #ifndef CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_
6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ 6 #define CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/input/scrollbar.h" 9 #include "cc/input/scrollbar.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void PushScrollClipPropertiesTo(LayerImpl* layer); 49 void PushScrollClipPropertiesTo(LayerImpl* layer);
50 50
51 bool SetVisibleToTotalLengthRatio(float ratio); 51 bool SetVisibleToTotalLengthRatio(float ratio);
52 virtual gfx::Rect ComputeThumbQuadRect() const; 52 virtual gfx::Rect ComputeThumbQuadRect() const;
53 53
54 float thumb_thickness_scale_factor() { 54 float thumb_thickness_scale_factor() {
55 return thumb_thickness_scale_factor_; 55 return thumb_thickness_scale_factor_;
56 } 56 }
57 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor); 57 bool SetThumbThicknessScaleFactor(float thumb_thickness_scale_factor);
58 58
59 void ScrollbarParametersDidChange(); 59 void ScrollbarParametersDidChange(bool on_resize);
60 60
61 protected: 61 protected:
62 ScrollbarLayerImplBase(LayerTreeImpl* tree_impl, 62 ScrollbarLayerImplBase(LayerTreeImpl* tree_impl,
63 int id, 63 int id,
64 ScrollbarOrientation orientation, 64 ScrollbarOrientation orientation,
65 bool is_left_side_vertical_scrollbar, 65 bool is_left_side_vertical_scrollbar,
66 bool is_overlay); 66 bool is_overlay);
67 virtual ~ScrollbarLayerImplBase(); 67 virtual ~ScrollbarLayerImplBase();
68 68
69 gfx::Rect ScrollbarLayerRectToContentRect(const gfx::RectF& layer_rect) const; 69 gfx::Rect ScrollbarLayerRectToContentRect(const gfx::RectF& layer_rect) const;
(...skipping 27 matching lines...) Expand all
97 float vertical_adjust_; 97 float vertical_adjust_;
98 98
99 float visible_to_total_length_ratio_; 99 float visible_to_total_length_ratio_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase); 101 DISALLOW_COPY_AND_ASSIGN(ScrollbarLayerImplBase);
102 }; 102 };
103 103
104 } // namespace cc 104 } // namespace cc
105 105
106 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_ 106 #endif // CC_LAYERS_SCROLLBAR_LAYER_IMPL_BASE_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/scrollbar_layer_impl_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698