| 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 <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 const LayerSelectionBound& end); | 279 const LayerSelectionBound& end); |
| 280 | 280 |
| 281 // Compute the current selection handle location and visbility with respect to | 281 // Compute the current selection handle location and visbility with respect to |
| 282 // the viewport. | 282 // the viewport. |
| 283 void GetViewportSelection(ViewportSelectionBound* start, | 283 void GetViewportSelection(ViewportSelectionBound* start, |
| 284 ViewportSelectionBound* end); | 284 ViewportSelectionBound* end); |
| 285 | 285 |
| 286 void RegisterPictureLayerImpl(PictureLayerImpl* layer); | 286 void RegisterPictureLayerImpl(PictureLayerImpl* layer); |
| 287 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); | 287 void UnregisterPictureLayerImpl(PictureLayerImpl* layer); |
| 288 | 288 |
| 289 void set_top_controls_layout_height(float height) { | 289 void set_top_controls_shrink_blink_size(bool shrink) { |
| 290 top_controls_layout_height_ = height; | 290 top_controls_shrink_blink_size_ = shrink; |
| 291 } | 291 } |
| 292 void set_top_controls_height(float height) { top_controls_height_ = height; } |
| 292 void set_top_controls_content_offset(float offset) { | 293 void set_top_controls_content_offset(float offset) { |
| 293 top_controls_content_offset_ = offset; | 294 top_controls_content_offset_ = offset; |
| 294 } | 295 } |
| 295 void set_top_controls_delta(float delta) { | 296 void set_top_controls_delta(float delta) { |
| 296 top_controls_delta_ = delta; | 297 top_controls_delta_ = delta; |
| 297 } | 298 } |
| 298 void set_sent_top_controls_delta(float sent_delta) { | 299 void set_sent_top_controls_delta(float sent_delta) { |
| 299 sent_top_controls_delta_ = sent_delta; | 300 sent_top_controls_delta_ = sent_delta; |
| 300 } | 301 } |
| 301 | 302 |
| 302 float top_controls_layout_height() const { | 303 bool top_controls_shrink_blink_size() const { |
| 303 return top_controls_layout_height_; | 304 return top_controls_shrink_blink_size_; |
| 304 } | 305 } |
| 306 float top_controls_height() const { return top_controls_height_; } |
| 305 float top_controls_content_offset() const { | 307 float top_controls_content_offset() const { |
| 306 return top_controls_content_offset_; | 308 return top_controls_content_offset_; |
| 307 } | 309 } |
| 308 float top_controls_delta() const { | 310 float top_controls_delta() const { |
| 309 return top_controls_delta_; | 311 return top_controls_delta_; |
| 310 } | 312 } |
| 311 float sent_top_controls_delta() const { | 313 float sent_top_controls_delta() const { |
| 312 return sent_top_controls_delta_; | 314 return sent_top_controls_delta_; |
| 313 } | 315 } |
| 314 float total_top_controls_content_offset() const { | 316 float total_top_controls_content_offset() const { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 bool next_activation_forces_redraw_; | 374 bool next_activation_forces_redraw_; |
| 373 | 375 |
| 374 bool has_ever_been_drawn_; | 376 bool has_ever_been_drawn_; |
| 375 | 377 |
| 376 ScopedPtrVector<SwapPromise> swap_promise_list_; | 378 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 377 | 379 |
| 378 UIResourceRequestQueue ui_resource_request_queue_; | 380 UIResourceRequestQueue ui_resource_request_queue_; |
| 379 | 381 |
| 380 int render_surface_layer_list_id_; | 382 int render_surface_layer_list_id_; |
| 381 | 383 |
| 382 // The top controls content offset at the time of the last layout (and thus, | 384 // Whether or not Blink's viewport size was shrunk by the height of the top |
| 383 // viewport resize) in Blink. i.e. How much the viewport was shrunk by the top | 385 // controls at the time of the last layout. |
| 384 // controls. | 386 float top_controls_shrink_blink_size_; |
| 385 float top_controls_layout_height_; | 387 |
| 388 float top_controls_height_; |
| 386 | 389 |
| 387 // The up-to-date content offset of the top controls, i.e. the amount that the | 390 // The up-to-date content offset of the top controls, i.e. the amount that the |
| 388 // web contents have been shifted down from the top of the device viewport. | 391 // web contents have been shifted down from the top of the device viewport. |
| 389 float top_controls_content_offset_; | 392 float top_controls_content_offset_; |
| 390 float top_controls_delta_; | 393 float top_controls_delta_; |
| 391 float sent_top_controls_delta_; | 394 float sent_top_controls_delta_; |
| 392 | 395 |
| 393 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 396 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
| 394 | 397 |
| 395 private: | 398 private: |
| 396 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 399 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 397 }; | 400 }; |
| 398 | 401 |
| 399 } // namespace cc | 402 } // namespace cc |
| 400 | 403 |
| 401 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 404 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |