| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // element accepts text input. | 259 // element accepts text input. |
| 260 virtual void FocusedNodeTouched(bool editable) {} | 260 virtual void FocusedNodeTouched(bool editable) {} |
| 261 | 261 |
| 262 // Return this object cast to a WebContents, if it is one. If the object is | 262 // Return this object cast to a WebContents, if it is one. If the object is |
| 263 // not a WebContents, returns nullptr. | 263 // not a WebContents, returns nullptr. |
| 264 virtual WebContents* GetAsWebContents(); | 264 virtual WebContents* GetAsWebContents(); |
| 265 | 265 |
| 266 // Notifies that a CompositorFrame was received from the renderer. | 266 // Notifies that a CompositorFrame was received from the renderer. |
| 267 virtual void DidReceiveCompositorFrame() {} | 267 virtual void DidReceiveCompositorFrame() {} |
| 268 | 268 |
| 269 // Gets the size set by a top-level frame with auto-resize enabled. |
| 270 virtual gfx::Size GetAutoResizeSize(); |
| 271 |
| 272 // Reset the auto-size value, to indicate that auto-size is no longer active. |
| 273 virtual void ResetAutoResizeSize() {} |
| 274 |
| 269 protected: | 275 protected: |
| 270 virtual ~RenderWidgetHostDelegate() {} | 276 virtual ~RenderWidgetHostDelegate() {} |
| 271 }; | 277 }; |
| 272 | 278 |
| 273 } // namespace content | 279 } // namespace content |
| 274 | 280 |
| 275 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 281 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |