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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 3b3c6cf562313fd192b2e8912cb4d1007e233463..fe5349370fbfa8c72cf526c67807fd76f4a086bf 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -48,6 +48,7 @@ class ResourceProvider;
class TileManager;
class UIResourceRequest;
struct RendererCapabilities;
+struct SelectionHandle;
typedef std::list<UIResourceRequest> UIResourceRequestQueue;
@@ -263,12 +264,21 @@ class CC_EXPORT LayerTreeImpl {
LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
const gfx::PointF& screen_space_point);
+ void RegisterSelection(const LayerSelectionBound& anchor,
+ const LayerSelectionBound& focus);
+
+ // Compute the current selection handle location and visbility with respect to
+ // the viewport.
+ void GetViewportSelection(ViewportSelectionBound* anchor,
+ ViewportSelectionBound* focus);
+
void RegisterPictureLayerImpl(PictureLayerImpl* layer);
void UnregisterPictureLayerImpl(PictureLayerImpl* layer);
protected:
explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
void ReleaseResourcesRecursive(LayerImpl* current);
+ void ClearSelection();
LayerTreeHostImpl* layer_tree_host_impl_;
int source_frame_number_;
@@ -287,6 +297,9 @@ class CC_EXPORT LayerTreeImpl {
LayerImpl* inner_viewport_scroll_layer_;
LayerImpl* outer_viewport_scroll_layer_;
+ LayerSelectionBound selection_anchor_;
+ LayerSelectionBound selection_focus_;
+
float page_scale_factor_;
float page_scale_delta_;
float sent_page_scale_delta_;

Powered by Google App Engine
This is Rietveld 408576698