Index: cc/trees/layer_tree_impl.h |
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h |
index 95f702fb549f2b8a6c518737eb360dfa64c978e1..fb97c4f083af3acb0045aa0cc30aa5163110a171 100644 |
--- a/cc/trees/layer_tree_impl.h |
+++ b/cc/trees/layer_tree_impl.h |
@@ -47,6 +47,7 @@ class ResourceProvider; |
class TileManager; |
class UIResourceRequest; |
struct RendererCapabilities; |
+struct SelectionHandle; |
typedef std::list<UIResourceRequest> UIResourceRequestQueue; |
@@ -259,9 +260,17 @@ 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(SelectionBound* anchor, SelectionBound* focus); |
+ |
protected: |
explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); |
void ReleaseResourcesRecursive(LayerImpl* current); |
+ void ClearSelection(); |
LayerTreeHostImpl* layer_tree_host_impl_; |
int source_frame_number_; |
@@ -280,6 +289,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_; |