| Index: content/public/browser/web_contents_view_delegate.h
|
| diff --git a/content/public/browser/web_contents_view_delegate.h b/content/public/browser/web_contents_view_delegate.h
|
| index 5a859b2230fd81f80df2814b3efc6a881435f1e9..32f29cadc58533b93fe5639835f73d23937143b0 100644
|
| --- a/content/public/browser/web_contents_view_delegate.h
|
| +++ b/content/public/browser/web_contents_view_delegate.h
|
| @@ -9,7 +9,10 @@
|
| #import <Cocoa/Cocoa.h>
|
| #endif
|
|
|
| +#include "base/callback_forward.h"
|
| #include "content/common/content_export.h"
|
| +#include "ui/gfx/geometry/rect.h"
|
| +#include "ui/gfx/native_widget_types.h"
|
|
|
| #if defined(__OBJC__)
|
| @protocol RenderWidgetHostViewMacDelegate;
|
| @@ -19,6 +22,10 @@ namespace gfx {
|
| class Size;
|
| }
|
|
|
| +namespace ui {
|
| +class GestureEvent;
|
| +}
|
| +
|
| namespace content {
|
| class RenderFrameHost;
|
| class RenderWidgetHost;
|
| @@ -47,6 +54,24 @@ class CONTENT_EXPORT WebContentsViewDelegate {
|
| virtual void TakeFocus(bool reverse);
|
| virtual void SizeChanged(const gfx::Size& size);
|
|
|
| +#if defined(TOOLKIT_VIEWS)
|
| + // Shows a popup window containing the |zoomed_bitmap| of web content with
|
| + // more than one link, allowing the user to more easily select which link
|
| + // they were trying to touch. |target_rect| is the rectangle in DIPs in the
|
| + // coordinate system of |content| that has been scaled up in |zoomed_bitmap|.
|
| + // Should the popup receive any gesture events they should be translated back
|
| + // to the coordinate system of |content| and then provided to the |callback|
|
| + // for forwarding on to the original scale web content.
|
| + typedef base::Callback<void(ui::GestureEvent* event)> GestureCallback;
|
| + virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
|
| + const SkBitmap& zoomed_bitmap,
|
| + const gfx::NativeView content,
|
| + const GestureCallback& callback) = 0;
|
| + // Hides the link disambiguation popup window if it is showing, otherwise does
|
| + // nothing.
|
| + virtual void HideDisambiguationPopup() = 0;
|
| +#endif
|
| +
|
| // Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle
|
| // events on the responder chain.
|
| #if defined(__OBJC__)
|
|
|