| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // As in RenderWidgetInputHandlerDelegate. | 33 // As in RenderWidgetInputHandlerDelegate. |
| 34 virtual void RenderWidgetFocusChangeComplete() = 0; | 34 virtual void RenderWidgetFocusChangeComplete() = 0; |
| 35 virtual bool DoesRenderWidgetHaveTouchEventHandlersAt( | 35 virtual bool DoesRenderWidgetHaveTouchEventHandlersAt( |
| 36 const gfx::Point& point) const = 0; | 36 const gfx::Point& point) const = 0; |
| 37 virtual void RenderWidgetDidHandleKeyEvent() = 0; | 37 virtual void RenderWidgetDidHandleKeyEvent() = 0; |
| 38 virtual bool RenderWidgetWillHandleGestureEvent( | 38 virtual bool RenderWidgetWillHandleGestureEvent( |
| 39 const blink::WebGestureEvent& event) = 0; | 39 const blink::WebGestureEvent& event) = 0; |
| 40 virtual bool RenderWidgetWillHandleMouseEvent( | 40 virtual bool RenderWidgetWillHandleMouseEvent( |
| 41 const blink::WebMouseEvent& event) = 0; | 41 const blink::WebMouseEvent& event) = 0; |
| 42 | 42 |
| 43 // Painting notifications. RenderWidgetDidCommitAndDrawCompositorFrame happens |
| 44 // when that has completed, and subsequent rendering won't affect the painted |
| 45 // content. DidFlushPaint happens once we've received the ACK that the screen |
| 46 // has been updated. For a given paint operation, these overrides will always |
| 47 // be called in the order RenderWidgetDidCommitAndDrawCompositorFrame, |
| 48 // RenderWidgetDidFlushPaint. |
| 49 virtual void RenderWidgetDidCommitAndDrawCompositorFrame() = 0; |
| 50 virtual void RenderWidgetDidFlushPaint() = 0; |
| 51 |
| 43 protected: | 52 protected: |
| 44 virtual ~RenderWidgetOwnerDelegate() {} | 53 virtual ~RenderWidgetOwnerDelegate() {} |
| 45 }; | 54 }; |
| 46 | 55 |
| 47 } // namespace content | 56 } // namespace content |
| 48 | 57 |
| 49 #endif // CONTENT_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ | 58 #endif // CONTENT_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ |
| OLD | NEW |