Chromium Code Reviews| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 virtual RenderViewHostDelegateView* GetDelegateView(); | 215 virtual RenderViewHostDelegateView* GetDelegateView(); |
| 216 | 216 |
| 217 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is | 217 // Returns the current Flash fullscreen RenderWidgetHostImpl if any. This is |
| 218 // not intended for use with other types of fullscreen, such as HTML | 218 // not intended for use with other types of fullscreen, such as HTML |
| 219 // fullscreen, and will return nullptr for those cases. | 219 // fullscreen, and will return nullptr for those cases. |
| 220 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; | 220 virtual RenderWidgetHostImpl* GetFullscreenRenderWidgetHost() const; |
| 221 | 221 |
| 222 // Allow the delegate to handle the cursor update. Returns true if handled. | 222 // Allow the delegate to handle the cursor update. Returns true if handled. |
| 223 virtual bool OnUpdateDragCursor(); | 223 virtual bool OnUpdateDragCursor(); |
| 224 | 224 |
| 225 virtual bool IsWidgetForMainFrame(RenderWidgetHostImpl*); | |
|
alexmos
2017/03/23 22:25:18
nit: A comment here on what this is for might be u
kenrb
2017/03/24 14:18:43
Done. I had intended to do that but forgot, thanks
| |
| 226 | |
| 225 // Inner WebContents Helpers ------------------------------------------------- | 227 // Inner WebContents Helpers ------------------------------------------------- |
| 226 // | 228 // |
| 227 // These functions are helpers in managing a hierharchy of WebContents | 229 // These functions are helpers in managing a hierharchy of WebContents |
| 228 // involved in rendering inner WebContents. | 230 // involved in rendering inner WebContents. |
| 229 | 231 |
| 230 // Get the RenderWidgetHost that should receive page level focus events. This | 232 // Get the RenderWidgetHost that should receive page level focus events. This |
| 231 // will be the widget that is rendering the main frame of the currently | 233 // will be the widget that is rendering the main frame of the currently |
| 232 // focused WebContents. | 234 // focused WebContents. |
| 233 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); | 235 virtual RenderWidgetHostImpl* GetRenderWidgetHostWithPageFocus(); |
| 234 | 236 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 253 // not a WebContents, returns nullptr. | 255 // not a WebContents, returns nullptr. |
| 254 virtual WebContents* GetAsWebContents(); | 256 virtual WebContents* GetAsWebContents(); |
| 255 | 257 |
| 256 protected: | 258 protected: |
| 257 virtual ~RenderWidgetHostDelegate() {} | 259 virtual ~RenderWidgetHostDelegate() {} |
| 258 }; | 260 }; |
| 259 | 261 |
| 260 } // namespace content | 262 } // namespace content |
| 261 | 263 |
| 262 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 264 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |