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