| 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 b0e3f6255b90fd9be86762263706cd7b71a78a56..27cc0945f3c121dd259e1917becb03d1a833f044 100644
|
| --- a/content/public/browser/web_contents_view_delegate.h
|
| +++ b/content/public/browser/web_contents_view_delegate.h
|
| @@ -9,7 +9,9 @@
|
| #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(OS_MACOSX)
|
| @@ -22,6 +24,7 @@ class Size;
|
|
|
| namespace ui {
|
| class FocusStoreGtk;
|
| +class GestureEvent;
|
| }
|
|
|
| namespace content {
|
| @@ -34,6 +37,8 @@ struct ContextMenuParams;
|
| // WebContentsView implementation.
|
| class CONTENT_EXPORT WebContentsViewDelegate {
|
| public:
|
| + typedef base::Callback<void(ui::GestureEvent* event)> GestureCallback;
|
| +
|
| virtual ~WebContentsViewDelegate() {}
|
|
|
| // Returns a delegate to process drags not handled by content.
|
| @@ -43,6 +48,11 @@ class CONTENT_EXPORT WebContentsViewDelegate {
|
| virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
|
| const ContextMenuParams& params) = 0;
|
|
|
| + virtual void ShowLinkDisambiguationPopup(const gfx::Rect& target_rect,
|
| + const SkBitmap& zoomed_bitmap,
|
| + const gfx::NativeView content,
|
| + GestureCallback callback) = 0;
|
| +
|
| #if defined(USE_AURA)
|
| // These methods allow the embedder to intercept WebContentsViewWin's
|
| // implementation of these WebContentsView methods. See the WebContentsView
|
|
|