Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(805)

Unified Diff: chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: first patch ready for review Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h
diff --git a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h
index 09f2231d8a81426cb4727555a5cfb48daa0ac1e5..db60bb217ba55cb4048f037ea518eacfe3d0151e 100644
--- a/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h
+++ b/chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h
@@ -11,6 +11,7 @@
#include "chrome/browser/renderer_context_menu/context_menu_delegate.h"
#include "content/public/browser/web_contents_view_delegate.h"
+class LinkDisambiguationPopup;
class RenderViewContextMenu;
class RenderViewContextMenuViews;
@@ -48,6 +49,11 @@ class ChromeWebContentsViewDelegateViews
virtual void ShowContextMenu(
content::RenderFrameHost* render_frame_host,
const content::ContextMenuParams& params) OVERRIDE;
+ virtual void ShowLinkDisambiguationPopup(
+ const gfx::Rect& target_rect,
+ const SkBitmap& zoomed_bitmap,
+ const gfx::NativeView content,
+ content::WebContentsViewDelegate::GestureCallback callback) OVERRIDE;
virtual void SizeChanged(const gfx::Size& size) OVERRIDE;
// Overridden from ContextMenuDelegate.
@@ -74,6 +80,8 @@ class ChromeWebContentsViewDelegateViews
content::WebContents* web_contents_;
+ scoped_ptr<LinkDisambiguationPopup> link_disambiguation_popup_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeWebContentsViewDelegateViews);
};

Powered by Google App Engine
This is Rietveld 408576698