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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 // Notifies the delegate that a focused editable element has been touched | 243 // Notifies the delegate that a focused editable element has been touched |
244 // inside this RenderWidgetHost. If |editable| is true then the focused | 244 // inside this RenderWidgetHost. If |editable| is true then the focused |
245 // element accepts text input. | 245 // element accepts text input. |
246 virtual void FocusedNodeTouched(bool editable) {} | 246 virtual void FocusedNodeTouched(bool editable) {} |
247 | 247 |
248 // Return this object cast to a WebContents, if it is one. If the object is | 248 // Return this object cast to a WebContents, if it is one. If the object is |
249 // not a WebContents, returns nullptr. | 249 // not a WebContents, returns nullptr. |
250 virtual WebContents* GetAsWebContents(); | 250 virtual WebContents* GetAsWebContents(); |
251 | 251 |
| 252 // Notifies that a CompositorFrame was received from the renderer. |
| 253 virtual void DidReceiveCompositorFrame() {} |
| 254 |
252 protected: | 255 protected: |
253 virtual ~RenderWidgetHostDelegate() {} | 256 virtual ~RenderWidgetHostDelegate() {} |
254 }; | 257 }; |
255 | 258 |
256 } // namespace content | 259 } // namespace content |
257 | 260 |
258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 261 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |