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

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: attempt to fix athena build 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..c1b956a0bcb5a15d7210d500e3115294cdd2ccf4 100644
--- a/content/browser/renderer_host/render_view_host_delegate_view.h
+++ b/content/browser/renderer_host/render_view_host_delegate_view.h
@@ -8,6 +8,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "content/common/content_export.h"
#include "content/common/drag_event_source_info.h"
#include "third_party/WebKit/public/web/WebDragOperation.h"
@@ -20,6 +21,11 @@ class Rect;
class Vector2d;
}
+namespace ui {
+class GestureEvent;
+class MouseEvent;
+}
+
namespace content {
class RenderFrameHost;
struct ContextMenuParams;
@@ -76,6 +82,22 @@ 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, |zoomed_bitmap| is an enlarged image of that |target_rect|, and
+ // |callback| is for forwarding on to the original scale web content.
+ virtual void ShowDisambiguationPopup(
+ const gfx::Rect& target_rect,
+ const SkBitmap& zoomed_bitmap,
+ const base::Callback<void(ui::GestureEvent*)>& gesture_cb,
+ const base::Callback<void(ui::MouseEvent*)>& mouse_cb) {}
+
+ // Hides the Link Disambiguation Popup, if it was showing, otherwise does
+ // nothing.
+ virtual void HideDisambiguationPopup() {}
+#endif
+
protected:
virtual ~RenderViewHostDelegateView() {}
};
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698