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

Unified Diff: content/public/browser/web_contents_view_delegate.h

Issue 610893003: Remove #ifdefs around ShowLinkDisambiguationPopup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix my awful spelling Created 6 years, 3 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: 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 0b4b3c33f57b48791aff7a57cda5f68e440b1839..ecbd0ff968ae1cd3170c3175283aaea49434814b 100644
--- a/content/public/browser/web_contents_view_delegate.h
+++ b/content/public/browser/web_contents_view_delegate.h
@@ -9,9 +9,8 @@
#import <Cocoa/Cocoa.h>
#endif
-#include "base/callback.h"
+#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__)
@@ -19,6 +18,7 @@
#endif
namespace gfx {
+class Rect;
class Size;
}
@@ -55,7 +55,6 @@ class CONTENT_EXPORT WebContentsViewDelegate {
virtual void TakeFocus(bool reverse);
virtual void SizeChanged(const gfx::Size& size);
-#if defined(TOOLKIT_VIEWS) || defined(USE_AURA)
// 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
@@ -68,12 +67,11 @@ class CONTENT_EXPORT WebContentsViewDelegate {
const SkBitmap& zoomed_bitmap,
const gfx::NativeView content,
const base::Callback<void(ui::GestureEvent*)>& gesture_cb,
- const base::Callback<void(ui::MouseEvent*)>& mouse_cb) = 0;
+ const base::Callback<void(ui::MouseEvent*)>& mouse_cb);
// Hides the link disambiguation popup window if it is showing, otherwise does
// nothing.
- virtual void HideDisambiguationPopup() = 0;
-#endif
+ virtual void HideDisambiguationPopup();
// Returns a newly-created delegate for the RenderWidgetHostViewMac, to handle
// events on the responder chain.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/public/browser/web_contents_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698