#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__)
#endif
namespace gfx {
+class Rect;
class Size;
}
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
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.