| 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> |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 // Notification that the widget has lost capture. | 178 // Notification that the widget has lost capture. |
| 179 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} | 179 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} |
| 180 | 180 |
| 181 // Notification that the widget has lost the mouse lock. | 181 // Notification that the widget has lost the mouse lock. |
| 182 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} | 182 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} |
| 183 | 183 |
| 184 // Returns true if |render_widget_host| holds the mouse lock. | 184 // Returns true if |render_widget_host| holds the mouse lock. |
| 185 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host); | 185 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host); |
| 186 | 186 |
| 187 // Called when the widget has sent a compositor proto. This is used in Btlimp | |
| 188 // mode with the RemoteChannel compositor. | |
| 189 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, | |
| 190 const std::vector<uint8_t>& proto) {} | |
| 191 | |
| 192 // Called when the visibility of the RenderFrameProxyHost in outer | 187 // Called when the visibility of the RenderFrameProxyHost in outer |
| 193 // WebContents changes. This method is only called on an inner WebContents and | 188 // WebContents changes. This method is only called on an inner WebContents and |
| 194 // will eventually notify all the RenderWidgetHostViews belonging to that | 189 // will eventually notify all the RenderWidgetHostViews belonging to that |
| 195 // WebContents. | 190 // WebContents. |
| 196 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} | 191 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} |
| 197 | 192 |
| 198 // Update the renderer's cache of the screen rect of the view and window. | 193 // Update the renderer's cache of the screen rect of the view and window. |
| 199 virtual void SendScreenRects() {} | 194 virtual void SendScreenRects() {} |
| 200 | 195 |
| 201 // Notifies that the main frame in the renderer has performed the first paint | 196 // Notifies that the main frame in the renderer has performed the first paint |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // not a WebContents, returns nullptr. | 249 // not a WebContents, returns nullptr. |
| 255 virtual WebContents* GetAsWebContents(); | 250 virtual WebContents* GetAsWebContents(); |
| 256 | 251 |
| 257 protected: | 252 protected: |
| 258 virtual ~RenderWidgetHostDelegate() {} | 253 virtual ~RenderWidgetHostDelegate() {} |
| 259 }; | 254 }; |
| 260 | 255 |
| 261 } // namespace content | 256 } // namespace content |
| 262 | 257 |
| 263 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |