| 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) && !defined(USE_AURA) |
| 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 |
| 95 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 101 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| 96 virtual void AcceleratedSurfaceBuffersSwapped( | 102 virtual void AcceleratedSurfaceBuffersSwapped( |
| 97 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 103 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 98 int gpu_host_id) OVERRIDE; | 104 int gpu_host_id) OVERRIDE; |
| 99 virtual void AcceleratedSurfacePostSubBuffer( | 105 virtual void AcceleratedSurfacePostSubBuffer( |
| 100 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 106 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 101 int gpu_host_id) OVERRIDE; | 107 int gpu_host_id) OVERRIDE; |
| 102 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 108 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 103 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 109 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| 104 virtual void SetHasHorizontalScrollbar( | 110 virtual void SetHasHorizontalScrollbar( |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 194 |
| 189 BrowserPluginGuest *guest_; | 195 BrowserPluginGuest *guest_; |
| 190 gfx::Size size_; | 196 gfx::Size size_; |
| 191 | 197 |
| 192 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 198 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
| 193 }; | 199 }; |
| 194 | 200 |
| 195 } // namespace content | 201 } // namespace content |
| 196 | 202 |
| 197 #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 |