| Index: chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
|
| diff --git a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
|
| index b8ccbd8fbbaff98432cb699efaba80a3df5a7d9d..4983102ab9571393966ff74d043e3535d96a3bcb 100644
|
| --- a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
|
| +++ b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.cc
|
| @@ -21,6 +21,10 @@
|
| #include "ui/views/focus/view_storage.h"
|
| #include "ui/views/widget/widget.h"
|
|
|
| +#if defined(OS_WIN)
|
| +#include "chrome/browser/ui/views/link_disambiguation/link_disambiguation_popup.h"
|
| +#endif
|
| +
|
| ChromeWebContentsViewDelegateViews::ChromeWebContentsViewDelegateViews(
|
| content::WebContents* web_contents)
|
| : ContextMenuDelegate(web_contents),
|
| @@ -166,6 +170,18 @@ void ChromeWebContentsViewDelegateViews::ShowContextMenu(
|
| params));
|
| }
|
|
|
| +#if defined(OS_WIN)
|
| +void ChromeWebContentsViewDelegateViews::ShowLinkDisambiguationPopup(
|
| + const gfx::Rect& target_rect,
|
| + const SkBitmap& zoomed_bitmap,
|
| + const gfx::NativeView content,
|
| + content::WebContentsViewDelegate::GestureCallback callback) {
|
| + link_disambiguation_popup_.reset(new LinkDisambiguationPopup);
|
| + link_disambiguation_popup_->Show(
|
| + zoomed_bitmap, target_rect, content, callback);
|
| +}
|
| +#endif
|
| +
|
| void ChromeWebContentsViewDelegateViews::SizeChanged(const gfx::Size& size) {
|
| SadTabHelper* sad_tab_helper = SadTabHelper::FromWebContents(web_contents_);
|
| if (!sad_tab_helper)
|
|
|