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

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

Issue 1063853005: Unify Android Webview and Chrome's fling (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: add a todo Created 5 years, 6 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
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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 void set_top_controls_height(float top_controls_height); 335 void set_top_controls_height(float top_controls_height);
336 float top_controls_height() const { return top_controls_height_; } 336 float top_controls_height() const { return top_controls_height_; }
337 void PushTopControlsFromMainThread(float top_controls_shown_ratio); 337 void PushTopControlsFromMainThread(float top_controls_shown_ratio);
338 338
339 void SetPendingPageScaleAnimation( 339 void SetPendingPageScaleAnimation(
340 scoped_ptr<PendingPageScaleAnimation> pending_animation); 340 scoped_ptr<PendingPageScaleAnimation> pending_animation);
341 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation(); 341 scoped_ptr<PendingPageScaleAnimation> TakePendingPageScaleAnimation();
342 342
343 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids); 343 void GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids);
344 344
345 bool IsExternalFlingActive() const; 345 bool IsExternalScrollActive() const;
346 void DidUpdateScrollOffset(int layer_id); 346 void DidUpdateScrollOffset(int layer_id);
347 347
348 protected: 348 protected:
349 explicit LayerTreeImpl( 349 explicit LayerTreeImpl(
350 LayerTreeHostImpl* layer_tree_host_impl, 350 LayerTreeHostImpl* layer_tree_host_impl,
351 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor, 351 scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor,
352 scoped_refptr<SyncedTopControls> top_controls_shown_ratio, 352 scoped_refptr<SyncedTopControls> top_controls_shown_ratio,
353 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll); 353 scoped_refptr<SyncedElasticOverscroll> elastic_overscroll);
354 float ClampPageScaleFactorToLimits(float page_scale_factor) const; 354 float ClampPageScaleFactorToLimits(float page_scale_factor) const;
355 void PushPageScaleFactorAndLimits(const float* page_scale_factor, 355 void PushPageScaleFactorAndLimits(const float* page_scale_factor,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 428
429 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 429 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
430 430
431 private: 431 private:
432 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 432 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
433 }; 433 };
434 434
435 } // namespace cc 435 } // namespace cc
436 436
437 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 437 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698