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 // Returns the widget that holds the mouse lock or nullptr if the mouse isn't | |
188 // locked. | |
189 virtual RenderWidgetHostImpl* MouseLockWidget(); | |
Charlie Reis
2017/02/15 21:38:49
nit: GetMouseLockWidget
lfg
2017/02/15 22:02:48
Done.
| |
190 | |
187 // Called when the visibility of the RenderFrameProxyHost in outer | 191 // Called when the visibility of the RenderFrameProxyHost in outer |
188 // WebContents changes. This method is only called on an inner WebContents and | 192 // WebContents changes. This method is only called on an inner WebContents and |
189 // will eventually notify all the RenderWidgetHostViews belonging to that | 193 // will eventually notify all the RenderWidgetHostViews belonging to that |
190 // WebContents. | 194 // WebContents. |
191 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} | 195 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} |
192 | 196 |
193 // Update the renderer's cache of the screen rect of the view and window. | 197 // Update the renderer's cache of the screen rect of the view and window. |
194 virtual void SendScreenRects() {} | 198 virtual void SendScreenRects() {} |
195 | 199 |
196 // Notifies that the main frame in the renderer has performed the first paint | 200 // 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... | |
249 // not a WebContents, returns nullptr. | 253 // not a WebContents, returns nullptr. |
250 virtual WebContents* GetAsWebContents(); | 254 virtual WebContents* GetAsWebContents(); |
251 | 255 |
252 protected: | 256 protected: |
253 virtual ~RenderWidgetHostDelegate() {} | 257 virtual ~RenderWidgetHostDelegate() {} |
254 }; | 258 }; |
255 | 259 |
256 } // namespace content | 260 } // namespace content |
257 | 261 |
258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 262 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |