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