| Index: content/browser/renderer_host/render_widget_host_delegate.h
|
| diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
|
| index e9c043e92ab13e9c51a78bc09995f8cdcf71cac1..65c663548abbe28f5f478bbfe232481edb3c392e 100644
|
| --- a/content/browser/renderer_host/render_widget_host_delegate.h
|
| +++ b/content/browser/renderer_host/render_widget_host_delegate.h
|
| @@ -18,6 +18,8 @@ class WebGestureEvent;
|
|
|
| namespace gfx {
|
| class Point;
|
| +class Rect;
|
| +class Size;
|
| }
|
|
|
| namespace content {
|
| @@ -44,6 +46,9 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
| virtual void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host,
|
| bool width_changed) {}
|
|
|
| + // The contents auto-resized and the container should match it.
|
| + virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {}
|
| +
|
| // The screen info has changed.
|
| virtual void ScreenInfoChanged() {}
|
|
|
| @@ -75,6 +80,11 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
| // Returns true if the |event| was handled.
|
| virtual bool PreHandleGestureEvent(const blink::WebGestureEvent& event);
|
|
|
| + // Notification the user has made a gesture while focus was on the
|
| + // page. This is used to avoid uninitiated user downloads (aka carpet
|
| + // bombing), see DownloadRequestLimiter for details.
|
| + virtual void OnUserGesture() {}
|
| +
|
| // Notifies that screen rects were sent to renderer process.
|
| virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
|
|
|
| @@ -105,6 +115,25 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
|
| // current FrameTree, not including the main frame's SiteInstance.
|
| virtual void ReplicatePageFocus(bool is_focused) {}
|
|
|
| + // Notification that the renderer has become unresponsive. The
|
| + // delegate can use this notification to show a warning to the user.
|
| + virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) {}
|
| +
|
| + // Notification that a previously unresponsive renderer has become
|
| + // responsive again. The delegate can use this notification to end the
|
| + // warning shown to the user.
|
| + virtual void RendererResponsive(RenderWidgetHostImpl* render_widget_host) {}
|
| +
|
| + // Requests to lock the mouse. Once the request is approved or rejected,
|
| + // GotResponseToLockMouseRequest() will be called on the requesting render
|
| + // widget host.
|
| + virtual void RequestToLockMouse(bool user_gesture,
|
| + bool last_unlocked_by_target) {}
|
| +
|
| + // Return the rect where to display the resize corner, if any, otherwise
|
| + // an empty rect.
|
| + virtual gfx::Rect GetRootWindowResizerRect() const;
|
| +
|
| #if defined(OS_WIN)
|
| virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
|
| #endif
|
|
|