| OLD | NEW |
| 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_TREES_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 source_frame_number_ = frame_number; | 96 source_frame_number_ = frame_number; |
| 97 } | 97 } |
| 98 | 98 |
| 99 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } | 99 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } |
| 100 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { | 100 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { |
| 101 hud_layer_ = layer_impl; | 101 hud_layer_ = layer_impl; |
| 102 } | 102 } |
| 103 | 103 |
| 104 LayerImpl* RootScrollLayer() const; | 104 LayerImpl* RootScrollLayer() const; |
| 105 LayerImpl* RootContainerLayer() const; | 105 LayerImpl* RootContainerLayer() const; |
| 106 LayerImpl* ViewportLayer() const; |
| 106 LayerImpl* CurrentlyScrollingLayer() const; | 107 LayerImpl* CurrentlyScrollingLayer() const; |
| 108 int NonOverlayScrollbarThickness(ScrollbarOrientation orientation) const; |
| 107 void SetCurrentlyScrollingLayer(LayerImpl* layer); | 109 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
| 108 void ClearCurrentlyScrollingLayer(); | 110 void ClearCurrentlyScrollingLayer(); |
| 109 | 111 |
| 110 void FindRootScrollLayer(); | 112 void FindRootScrollLayer(); |
| 111 void UpdateMaxScrollOffset(); | 113 void UpdateMaxScrollOffset(); |
| 112 | 114 |
| 113 SkColor background_color() const { return background_color_; } | 115 SkColor background_color() const { return background_color_; } |
| 114 void set_background_color(SkColor color) { background_color_ = color; } | 116 void set_background_color(SkColor color) { background_color_ = color; } |
| 115 | 117 |
| 116 bool has_transparent_background() const { | 118 bool has_transparent_background() const { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 241 |
| 240 ui::LatencyInfo latency_info_; | 242 ui::LatencyInfo latency_info_; |
| 241 | 243 |
| 242 private: | 244 private: |
| 243 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 245 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 244 }; | 246 }; |
| 245 | 247 |
| 246 } // namespace cc | 248 } // namespace cc |
| 247 | 249 |
| 248 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 250 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |