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

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

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: responding to sky's last round of feedback Created 6 years, 3 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_view_host_delegate_view.h
diff --git a/content/browser/renderer_host/render_view_host_delegate_view.h b/content/browser/renderer_host/render_view_host_delegate_view.h
index 0ff4a000c6e71c3dba73e780db785e372a3533de..19b585e4bbf52da49fcb0bd0efe801a4c836fe1c 100644
--- a/content/browser/renderer_host/render_view_host_delegate_view.h
+++ b/content/browser/renderer_host/render_view_host_delegate_view.h
@@ -76,6 +76,18 @@ class CONTENT_EXPORT RenderViewHostDelegateView {
virtual void HidePopupMenu() {};
#endif
+#if defined(TOOLKIT_VIEWS)
+ // Shows a Link Disambiguation Popup. |target_rect| is the area the user
+ // touched that resulted in ambiguity, in DIPs in the host's coordinate
+ // system, and |zoomed_bitmap| is an enlarged image of that |target_rect|.
+ virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
+ const SkBitmap& zoomed_bitmap) {}
+
+ // Hides the Link Disambiguation Popup, if it was showing, otherwise does
+ // nothing.
+ virtual void HideDisambiguationPopup() {}
+#endif
+
protected:
virtual ~RenderViewHostDelegateView() {}
};

Powered by Google App Engine
This is Rietveld 408576698