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 <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 257 } |
258 | 258 |
259 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( | 259 LayerImpl* FindFirstScrollingLayerThatIsHitByPoint( |
260 const gfx::PointF& screen_space_point); | 260 const gfx::PointF& screen_space_point); |
261 | 261 |
262 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); | 262 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); |
263 | 263 |
264 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( | 264 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( |
265 const gfx::PointF& screen_space_point); | 265 const gfx::PointF& screen_space_point); |
266 | 266 |
267 void RegisterSelection(const LayerSelectionBound& anchor, | 267 void RegisterSelection(const LayerSelectionBound& start, |
268 const LayerSelectionBound& focus); | 268 const LayerSelectionBound& end); |
269 | 269 |
270 // Compute the current selection handle location and visbility with respect to | 270 // Compute the current selection handle location and visbility with respect to |
271 // the viewport. | 271 // the viewport. |
272 void GetViewportSelection(ViewportSelectionBound* anchor, | 272 void GetViewportSelection(ViewportSelectionBound* start, |
273 ViewportSelectionBound* focus); | 273 ViewportSelectionBound* end); |
274 | 274 |
275 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 275 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
276 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 276 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
277 | 277 |
278 protected: | 278 protected: |
279 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); | 279 explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); |
280 void ReleaseResourcesRecursive(LayerImpl* current); | 280 void ReleaseResourcesRecursive(LayerImpl* current); |
281 | 281 |
282 LayerTreeHostImpl* layer_tree_host_impl_; | 282 LayerTreeHostImpl* layer_tree_host_impl_; |
283 int source_frame_number_; | 283 int source_frame_number_; |
284 scoped_ptr<LayerImpl> root_layer_; | 284 scoped_ptr<LayerImpl> root_layer_; |
285 HeadsUpDisplayLayerImpl* hud_layer_; | 285 HeadsUpDisplayLayerImpl* hud_layer_; |
286 LayerImpl* currently_scrolling_layer_; | 286 LayerImpl* currently_scrolling_layer_; |
287 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; | 287 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; |
288 scoped_ptr<LayerScrollOffsetDelegateProxy> | 288 scoped_ptr<LayerScrollOffsetDelegateProxy> |
289 inner_viewport_scroll_delegate_proxy_; | 289 inner_viewport_scroll_delegate_proxy_; |
290 scoped_ptr<LayerScrollOffsetDelegateProxy> | 290 scoped_ptr<LayerScrollOffsetDelegateProxy> |
291 outer_viewport_scroll_delegate_proxy_; | 291 outer_viewport_scroll_delegate_proxy_; |
292 SkColor background_color_; | 292 SkColor background_color_; |
293 bool has_transparent_background_; | 293 bool has_transparent_background_; |
294 | 294 |
295 LayerImpl* page_scale_layer_; | 295 LayerImpl* page_scale_layer_; |
296 LayerImpl* inner_viewport_scroll_layer_; | 296 LayerImpl* inner_viewport_scroll_layer_; |
297 LayerImpl* outer_viewport_scroll_layer_; | 297 LayerImpl* outer_viewport_scroll_layer_; |
298 | 298 |
299 LayerSelectionBound selection_anchor_; | 299 LayerSelectionBound selection_start_; |
300 LayerSelectionBound selection_focus_; | 300 LayerSelectionBound selection_end_; |
301 | 301 |
302 float page_scale_factor_; | 302 float page_scale_factor_; |
303 float page_scale_delta_; | 303 float page_scale_delta_; |
304 float sent_page_scale_delta_; | 304 float sent_page_scale_delta_; |
305 float min_page_scale_factor_; | 305 float min_page_scale_factor_; |
306 float max_page_scale_factor_; | 306 float max_page_scale_factor_; |
307 | 307 |
308 typedef base::hash_map<int, LayerImpl*> LayerIdMap; | 308 typedef base::hash_map<int, LayerImpl*> LayerIdMap; |
309 LayerIdMap layer_id_map_; | 309 LayerIdMap layer_id_map_; |
310 | 310 |
(...skipping 22 matching lines...) Expand all Loading... |
333 | 333 |
334 int render_surface_layer_list_id_; | 334 int render_surface_layer_list_id_; |
335 | 335 |
336 private: | 336 private: |
337 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 337 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
338 }; | 338 }; |
339 | 339 |
340 } // namespace cc | 340 } // namespace cc |
341 | 341 |
342 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 342 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |