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

Side by Side Diff: cc/trees/layer_tree_impl.h

Issue 877863002: Hide pinch viewport scrollbars when near minimum scale. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot about test Created 5 years, 10 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/scrollbar_layer_impl_base.cc ('k') | cc/trees/layer_tree_impl.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 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, 336 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor,
337 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); 337 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll);
338 void ReleaseResourcesRecursive(LayerImpl* current); 338 void ReleaseResourcesRecursive(LayerImpl* current);
339 float ClampPageScaleFactorToLimits(float page_scale_factor) const; 339 float ClampPageScaleFactorToLimits(float page_scale_factor) const;
340 void PushPageScaleFactorAndLimits(const float* page_scale_factor, 340 void PushPageScaleFactorAndLimits(const float* page_scale_factor,
341 float min_page_scale_factor, 341 float min_page_scale_factor,
342 float max_page_scale_factor); 342 float max_page_scale_factor);
343 bool SetPageScaleFactorLimits(float min_page_scale_factor, 343 bool SetPageScaleFactorLimits(float min_page_scale_factor,
344 float max_page_scale_factor); 344 float max_page_scale_factor);
345 void DidUpdatePageScale(); 345 void DidUpdatePageScale();
346 void HideInnerViewportScrollbarsIfNearMinimumScale();
346 347
347 LayerTreeHostImpl* layer_tree_host_impl_; 348 LayerTreeHostImpl* layer_tree_host_impl_;
348 int source_frame_number_; 349 int source_frame_number_;
349 scoped_ptr<LayerImpl> root_layer_; 350 scoped_ptr<LayerImpl> root_layer_;
350 HeadsUpDisplayLayerImpl* hud_layer_; 351 HeadsUpDisplayLayerImpl* hud_layer_;
351 LayerImpl* currently_scrolling_layer_; 352 LayerImpl* currently_scrolling_layer_;
352 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 353 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
353 scoped_ptr<LayerScrollOffsetDelegateProxy> 354 scoped_ptr<LayerScrollOffsetDelegateProxy>
354 inner_viewport_scroll_delegate_proxy_; 355 inner_viewport_scroll_delegate_proxy_;
355 scoped_ptr<LayerScrollOffsetDelegateProxy> 356 scoped_ptr<LayerScrollOffsetDelegateProxy>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 415
415 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 416 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
416 417
417 private: 418 private:
418 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 419 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
419 }; 420 };
420 421
421 } // namespace cc 422 } // namespace cc
422 423
423 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 424 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_impl_base.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698