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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 7 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: content/browser/renderer_host/render_widget_host_view_android.h
diff --git a/content/browser/renderer_host/render_widget_host_view_android.h b/content/browser/renderer_host/render_widget_host_view_android.h
index d393d544beccbd24c77098ab2931d9fcae38b3b6..071a1ce8d2e8fec1eec7ada2d915cd94a5ae0c85 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.h
+++ b/content/browser/renderer_host/render_widget_host_view_android.h
@@ -239,8 +239,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
void OnFrameMetadataUpdated(
const cc::CompositorFrameMetadata& frame_metadata);
void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata);
- void ResetClipping();
- void ClipContents(const gfx::Rect& clipping, const gfx::Size& content_size);
void AttachLayers();
void RemoveLayers();
@@ -336,6 +334,12 @@ class CONTENT_EXPORT RenderWidgetHostViewAndroid
// Size to use if we have no backing ContentViewCore
gfx::Size default_size_;
+ // Cached rectangles for the selection anchor and focus.
+ gfx::PointF cached_selection_anchor_;
+ gfx::PointF cached_selection_focus_;
+ bool cached_selection_anchor_visible_;
+ bool cached_selection_focus_visible_;
+
const bool using_synchronous_compositor_;
scoped_ptr<DelegatedFrameEvictor> frame_evictor_;

Powered by Google App Engine
This is Rietveld 408576698