| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 269 // Gets the size set by a top-level frame with auto-resize enabled. |
| 270 virtual gfx::Size GetAutoResizeSize(); | 270 virtual gfx::Size GetAutoResizeSize(); |
| 271 | 271 |
| 272 // Reset the auto-size value, to indicate that auto-size is no longer active. | 272 // Reset the auto-size value, to indicate that auto-size is no longer active. |
| 273 virtual void ResetAutoResizeSize() {} | 273 virtual void ResetAutoResizeSize() {} |
| 274 | 274 |
| 275 // Returns true if there is context menu shown on page. |
| 276 virtual bool IsShowingContextMenuOnPage() const; |
| 277 |
| 275 protected: | 278 protected: |
| 276 virtual ~RenderWidgetHostDelegate() {} | 279 virtual ~RenderWidgetHostDelegate() {} |
| 277 }; | 280 }; |
| 278 | 281 |
| 279 } // namespace content | 282 } // namespace content |
| 280 | 283 |
| 281 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 284 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
| OLD | NEW |