| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/common/drag_event_source_info.h" | 14 #include "content/common/drag_event_source_info.h" |
| 15 #include "content/public/browser/renderer_unresponsive_type.h" | |
| 16 #include "content/public/common/drop_data.h" | 15 #include "content/public/common/drop_data.h" |
| 17 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 16 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 18 #include "third_party/WebKit/public/platform/WebDragOperation.h" | 17 #include "third_party/WebKit/public/platform/WebDragOperation.h" |
| 19 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 18 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 20 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
| 21 | 20 |
| 22 namespace blink { | 21 namespace blink { |
| 23 class WebMouseWheelEvent; | 22 class WebMouseWheelEvent; |
| 24 class WebGestureEvent; | 23 class WebGestureEvent; |
| 25 } | 24 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // out-of-process iframes, where multiple RenderWidgetHosts may be involved | 143 // out-of-process iframes, where multiple RenderWidgetHosts may be involved |
| 145 // in rendering a page, yet keyboard events all arrive at the main frame's | 144 // in rendering a page, yet keyboard events all arrive at the main frame's |
| 146 // RenderWidgetHostView. When a main frame's RenderWidgetHost is passed in, | 145 // RenderWidgetHostView. When a main frame's RenderWidgetHost is passed in, |
| 147 // the function returns the focused frame that should consume keyboard | 146 // the function returns the focused frame that should consume keyboard |
| 148 // events. In all other cases, the function returns back |receiving_widget|. | 147 // events. In all other cases, the function returns back |receiving_widget|. |
| 149 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost( | 148 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost( |
| 150 RenderWidgetHostImpl* receiving_widget); | 149 RenderWidgetHostImpl* receiving_widget); |
| 151 | 150 |
| 152 // Notification that the renderer has become unresponsive. The | 151 // Notification that the renderer has become unresponsive. The |
| 153 // delegate can use this notification to show a warning to the user. | 152 // delegate can use this notification to show a warning to the user. |
| 154 virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host, | 153 virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) {} |
| 155 RendererUnresponsiveType type) {} | |
| 156 | 154 |
| 157 // Notification that a previously unresponsive renderer has become | 155 // Notification that a previously unresponsive renderer has become |
| 158 // responsive again. The delegate can use this notification to end the | 156 // responsive again. The delegate can use this notification to end the |
| 159 // warning shown to the user. | 157 // warning shown to the user. |
| 160 virtual void RendererResponsive(RenderWidgetHostImpl* render_widget_host) {} | 158 virtual void RendererResponsive(RenderWidgetHostImpl* render_widget_host) {} |
| 161 | 159 |
| 162 // Requests to lock the mouse. Once the request is approved or rejected, | 160 // Requests to lock the mouse. Once the request is approved or rejected, |
| 163 // GotResponseToLockMouseRequest() will be called on the requesting render | 161 // GotResponseToLockMouseRequest() will be called on the requesting render |
| 164 // widget host. |privileged| means that the request is always granted, used | 162 // widget host. |privileged| means that the request is always granted, used |
| 165 // for Pepper Flash. | 163 // for Pepper Flash. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // not a WebContents, returns nullptr. | 251 // not a WebContents, returns nullptr. |
| 254 virtual WebContents* GetAsWebContents(); | 252 virtual WebContents* GetAsWebContents(); |
| 255 | 253 |
| 256 protected: | 254 protected: |
| 257 virtual ~RenderWidgetHostDelegate() {} | 255 virtual ~RenderWidgetHostDelegate() {} |
| 258 }; | 256 }; |
| 259 | 257 |
| 260 } // namespace content | 258 } // namespace content |
| 261 | 259 |
| 262 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 260 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |