| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void Destroy() OVERRIDE; | 84 virtual void Destroy() OVERRIDE; |
| 85 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} | 85 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} |
| 86 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; | 86 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; |
| 87 virtual void SelectionBoundsChanged( | 87 virtual void SelectionBoundsChanged( |
| 88 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; | 88 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; |
| 89 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 89 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 90 virtual void CopyFromCompositingSurface( | 90 virtual void CopyFromCompositingSurface( |
| 91 const gfx::Rect& src_subrect, | 91 const gfx::Rect& src_subrect, |
| 92 const gfx::Size& dst_size, | 92 const gfx::Size& dst_size, |
| 93 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 93 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| 94 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 95 const gfx::Rect& src_subrect, |
| 96 const scoped_refptr<media::VideoFrame>& target, |
| 97 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 98 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| 94 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 99 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| 95 virtual void AcceleratedSurfaceBuffersSwapped( | 100 virtual void AcceleratedSurfaceBuffersSwapped( |
| 96 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 101 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 97 int gpu_host_id) OVERRIDE; | 102 int gpu_host_id) OVERRIDE; |
| 98 virtual void AcceleratedSurfacePostSubBuffer( | 103 virtual void AcceleratedSurfacePostSubBuffer( |
| 99 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 104 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 100 int gpu_host_id) OVERRIDE; | 105 int gpu_host_id) OVERRIDE; |
| 101 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 106 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 102 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 107 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| 103 virtual void SetHasHorizontalScrollbar( | 108 virtual void SetHasHorizontalScrollbar( |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 194 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
| 190 // compositing, the rest are directly forwared to this |platform_view_|. | 195 // compositing, the rest are directly forwared to this |platform_view_|. |
| 191 RenderWidgetHostViewPort* platform_view_; | 196 RenderWidgetHostViewPort* platform_view_; |
| 192 | 197 |
| 193 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 198 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
| 194 }; | 199 }; |
| 195 | 200 |
| 196 } // namespace content | 201 } // namespace content |
| 197 | 202 |
| 198 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 203 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
| OLD | NEW |