Chromium Code Reviews| 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..56d1053f2aa61ea4f8e33c16b53dc2f6551633c5 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 { |
| @@ -43,6 +46,24 @@ class CONTENT_EXPORT WebContentsViewDelegate { |
| virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
| const ContextMenuParams& params) = 0; |
| +#if defined(OS_WIN) |
|
sky
2014/08/04 20:05:20
OS_WIN->TOOLKIT_VIEWS
luken
2014/09/11 01:07:28
Done.
|
| + // 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 |
| + |
| #if defined(USE_AURA) |
| // These methods allow the embedder to intercept WebContentsViewWin's |
| // implementation of these WebContentsView methods. See the WebContentsView |