OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 9 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/common/readback_types.h" |
11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
12 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
13 | 14 |
14 struct ViewHostMsg_TextInputState_Params; | 15 struct ViewHostMsg_TextInputState_Params; |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 class CrossProcessFrameConnector; | 18 class CrossProcessFrameConnector; |
18 class RenderWidgetHost; | 19 class RenderWidgetHost; |
19 class RenderWidgetHostImpl; | 20 class RenderWidgetHostImpl; |
20 | 21 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual void Destroy() OVERRIDE; | 82 virtual void Destroy() OVERRIDE; |
82 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; | 83 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; |
83 virtual void SelectionChanged(const base::string16& text, | 84 virtual void SelectionChanged(const base::string16& text, |
84 size_t offset, | 85 size_t offset, |
85 const gfx::Range& range) OVERRIDE; | 86 const gfx::Range& range) OVERRIDE; |
86 virtual void SelectionBoundsChanged( | 87 virtual void SelectionBoundsChanged( |
87 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; | 88 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; |
88 virtual void CopyFromCompositingSurface( | 89 virtual void CopyFromCompositingSurface( |
89 const gfx::Rect& src_subrect, | 90 const gfx::Rect& src_subrect, |
90 const gfx::Size& dst_size, | 91 const gfx::Size& dst_size, |
91 const base::Callback<void(bool, const SkBitmap&)>& callback, | 92 CopyFromCompositingSurfaceCallback& callback, |
92 const SkColorType color_type) OVERRIDE; | 93 const SkColorType color_type) OVERRIDE; |
93 virtual void CopyFromCompositingSurfaceToVideoFrame( | 94 virtual void CopyFromCompositingSurfaceToVideoFrame( |
94 const gfx::Rect& src_subrect, | 95 const gfx::Rect& src_subrect, |
95 const scoped_refptr<media::VideoFrame>& target, | 96 const scoped_refptr<media::VideoFrame>& target, |
96 const base::Callback<void(bool)>& callback) OVERRIDE; | 97 const base::Callback<void(bool)>& callback) OVERRIDE; |
97 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 98 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
98 virtual void AcceleratedSurfaceInitialized(int host_id, | 99 virtual void AcceleratedSurfaceInitialized(int host_id, |
99 int route_id) OVERRIDE; | 100 int route_id) OVERRIDE; |
100 virtual void AcceleratedSurfaceBuffersSwapped( | 101 virtual void AcceleratedSurfaceBuffersSwapped( |
101 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 102 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // sent through it are routed to the embedding renderer process. | 171 // sent through it are routed to the embedding renderer process. |
171 CrossProcessFrameConnector* frame_connector_; | 172 CrossProcessFrameConnector* frame_connector_; |
172 | 173 |
173 private: | 174 private: |
174 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 175 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
175 }; | 176 }; |
176 | 177 |
177 } // namespace content | 178 } // namespace content |
178 | 179 |
179 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 180 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |