| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual void SelectionBoundsChanged( | 85 virtual void SelectionBoundsChanged( |
| 86 const gfx::Rect& start_rect, | 86 const gfx::Rect& start_rect, |
| 87 WebKit::WebTextDirection start_direction, | 87 WebKit::WebTextDirection start_direction, |
| 88 const gfx::Rect& end_rect, | 88 const gfx::Rect& end_rect, |
| 89 WebKit::WebTextDirection end_direction) OVERRIDE; | 89 WebKit::WebTextDirection end_direction) OVERRIDE; |
| 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 90 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 91 virtual void CopyFromCompositingSurface( | 91 virtual void CopyFromCompositingSurface( |
| 92 const gfx::Rect& src_subrect, | 92 const gfx::Rect& src_subrect, |
| 93 const gfx::Size& dst_size, | 93 const gfx::Size& dst_size, |
| 94 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 94 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| 95 #if defined(OS_WIN) |
| 96 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 97 const gfx::Rect& src_subrect, |
| 98 const scoped_refptr<media::VideoFrame>& target, |
| 99 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 100 #endif |
| 101 |
| 95 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 102 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| 96 virtual void AcceleratedSurfaceBuffersSwapped( | 103 virtual void AcceleratedSurfaceBuffersSwapped( |
| 97 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 104 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 98 int gpu_host_id) OVERRIDE; | 105 int gpu_host_id) OVERRIDE; |
| 99 virtual void AcceleratedSurfacePostSubBuffer( | 106 virtual void AcceleratedSurfacePostSubBuffer( |
| 100 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 107 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 101 int gpu_host_id) OVERRIDE; | 108 int gpu_host_id) OVERRIDE; |
| 102 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 109 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 103 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 110 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| 104 virtual void SetHasHorizontalScrollbar( | 111 virtual void SetHasHorizontalScrollbar( |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 195 |
| 189 BrowserPluginGuest *guest_; | 196 BrowserPluginGuest *guest_; |
| 190 gfx::Size size_; | 197 gfx::Size size_; |
| 191 | 198 |
| 192 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 199 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
| 193 }; | 200 }; |
| 194 | 201 |
| 195 } // namespace content | 202 } // namespace content |
| 196 | 203 |
| 197 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 204 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
| OLD | NEW |