| 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 { |
| 11 class WebMouseEvent; | 11 class WebMouseEvent; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class Point; | 15 class Point; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 // | 20 // |
| 21 // RenderWidgetOwnerDelegate | 21 // RenderWidgetOwnerDelegate |
| 22 // | 22 // |
| 23 // An interface implemented by an object owning a RenderWidget. This is | 23 // An interface implemented by an object owning a RenderWidget. This is |
| 24 // intended to be temporary until the RenderViewImpl and RenderWidget classes | 24 // intended to be temporary until the RenderViewImpl and RenderWidget classes |
| 25 // are disentangled; see http://crbug.com/583347 and http://crbug.com/478281. | 25 // are disentangled; see https://crbug.com/583347 and https://crbug.com/478281. |
| 26 class CONTENT_EXPORT RenderWidgetOwnerDelegate { | 26 class CONTENT_EXPORT RenderWidgetOwnerDelegate { |
| 27 public: | 27 public: |
| 28 // As in RenderWidgetInputHandlerDelegate. | 28 // As in RenderWidgetInputHandlerDelegate. |
| 29 virtual void RenderWidgetFocusChangeComplete() = 0; | |
| 30 virtual bool DoesRenderWidgetHaveTouchEventHandlersAt( | 29 virtual bool DoesRenderWidgetHaveTouchEventHandlersAt( |
| 31 const gfx::Point& point) const = 0; | 30 const gfx::Point& point) const = 0; |
| 32 virtual bool RenderWidgetWillHandleMouseEvent( | 31 virtual bool RenderWidgetWillHandleMouseEvent( |
| 33 const blink::WebMouseEvent& event) = 0; | 32 const blink::WebMouseEvent& event) = 0; |
| 34 | 33 |
| 35 protected: | 34 protected: |
| 36 virtual ~RenderWidgetOwnerDelegate() {} | 35 virtual ~RenderWidgetOwnerDelegate() {} |
| 37 }; | 36 }; |
| 38 | 37 |
| 39 } // namespace content | 38 } // namespace content |
| 40 | 39 |
| 41 #endif // CONTENT_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ | 40 #endif // CONTENT_RENDERER_RENDER_WIDGET_OWNER_DELEGATE_H_ |
| OLD | NEW |