| 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() {}
|
| };
|
|
|