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

Unified Diff: content/renderer/render_widget.h

Issue 300323005: Route selection bounds updates through the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Defer selection updates until after compositor scheduling 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: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 892dd61cab4514661253fa854c73e212d185cba6..6b38f6993e9e425e87c3adf97052f1541da13896 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -243,7 +243,8 @@ class CONTENT_EXPORT RenderWidget
// the new value will be sent to the browser process.
void UpdateSelectionBounds();
- virtual void GetSelectionBounds(gfx::Rect* start, gfx::Rect* end);
+ // Returns false if the selection bounds should not be updated.
+ virtual bool GetSelectionBounds(gfx::Rect* start, gfx::Rect* end);
void OnShowHostContextMenu(ContextMenuParams* params);
@@ -618,6 +619,7 @@ class CONTENT_EXPORT RenderWidget
// Stores the current selection bounds.
gfx::Rect selection_focus_rect_;
gfx::Rect selection_anchor_rect_;
+ bool enable_composited_selection_bounds_;
// Stores the current composition character bounds.
std::vector<gfx::Rect> composition_character_bounds_;

Powered by Google App Engine
This is Rietveld 408576698