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

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

Issue 2030033003: Replace cc::ViewportSelectionBound with gfx::SelectionBound (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build compiles locally Created 4 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 399
400 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point); 400 LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point);
401 401
402 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion( 402 LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
403 const gfx::PointF& screen_space_point); 403 const gfx::PointF& screen_space_point);
404 404
405 void RegisterSelection(const LayerSelection& selection); 405 void RegisterSelection(const LayerSelection& selection);
406 406
407 // Compute the current selection handle location and visbility with respect to 407 // Compute the current selection handle location and visbility with respect to
408 // the viewport. 408 // the viewport.
409 void GetViewportSelection(ViewportSelection* selection); 409 void GetViewportSelection(Selection<gfx::SelectionBound>* selection);
410 410
411 void set_top_controls_shrink_blink_size(bool shrink); 411 void set_top_controls_shrink_blink_size(bool shrink);
412 bool top_controls_shrink_blink_size() const { 412 bool top_controls_shrink_blink_size() const {
413 return top_controls_shrink_blink_size_; 413 return top_controls_shrink_blink_size_;
414 } 414 }
415 bool SetCurrentTopControlsShownRatio(float ratio); 415 bool SetCurrentTopControlsShownRatio(float ratio);
416 float CurrentTopControlsShownRatio() const { 416 float CurrentTopControlsShownRatio() const {
417 return top_controls_shown_ratio_->Current(IsActiveTree()); 417 return top_controls_shown_ratio_->Current(IsActiveTree());
418 } 418 }
419 void set_top_controls_height(float top_controls_height); 419 void set_top_controls_height(float top_controls_height);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 578
579 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 579 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
580 580
581 private: 581 private:
582 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 582 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
583 }; 583 };
584 584
585 } // namespace cc 585 } // namespace cc
586 586
587 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 587 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698