| 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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 virtual void SelectionChanged(const base::string16& text, | 202 virtual void SelectionChanged(const base::string16& text, |
| 203 size_t offset, | 203 size_t offset, |
| 204 const gfx::Range& range) OVERRIDE; | 204 const gfx::Range& range) OVERRIDE; |
| 205 virtual void SelectionBoundsChanged( | 205 virtual void SelectionBoundsChanged( |
| 206 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; | 206 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; |
| 207 virtual void ScrollOffsetChanged() OVERRIDE; | 207 virtual void ScrollOffsetChanged() OVERRIDE; |
| 208 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 208 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| 209 virtual void CopyFromCompositingSurface( | 209 virtual void CopyFromCompositingSurface( |
| 210 const gfx::Rect& src_subrect, | 210 const gfx::Rect& src_subrect, |
| 211 const gfx::Size& dst_size, | 211 const gfx::Size& dst_size, |
| 212 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; | 212 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 213 bool readback_config_rgb565) OVERRIDE; |
| 213 virtual void CopyFromCompositingSurfaceToVideoFrame( | 214 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 214 const gfx::Rect& src_subrect, | 215 const gfx::Rect& src_subrect, |
| 215 const scoped_refptr<media::VideoFrame>& target, | 216 const scoped_refptr<media::VideoFrame>& target, |
| 216 const base::Callback<void(bool)>& callback) OVERRIDE; | 217 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 217 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 218 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| 218 virtual bool CanSubscribeFrame() const OVERRIDE; | 219 virtual bool CanSubscribeFrame() const OVERRIDE; |
| 219 virtual void BeginFrameSubscription( | 220 virtual void BeginFrameSubscription( |
| 220 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 221 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
| 221 virtual void EndFrameSubscription() OVERRIDE; | 222 virtual void EndFrameSubscription() OVERRIDE; |
| 222 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 223 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); | 488 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); |
| 488 | 489 |
| 489 // Called after async thumbnailer task completes. Scales and crops the result | 490 // Called after async thumbnailer task completes. Scales and crops the result |
| 490 // of the copy. | 491 // of the copy. |
| 491 static void CopyFromCompositingSurfaceHasResult( | 492 static void CopyFromCompositingSurfaceHasResult( |
| 492 const gfx::Size& dst_size_in_pixel, | 493 const gfx::Size& dst_size_in_pixel, |
| 493 const base::Callback<void(bool, const SkBitmap&)>& callback, | 494 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 494 scoped_ptr<cc::CopyOutputResult> result); | 495 scoped_ptr<cc::CopyOutputResult> result); |
| 495 static void PrepareTextureCopyOutputResult( | 496 static void PrepareTextureCopyOutputResult( |
| 496 const gfx::Size& dst_size_in_pixel, | 497 const gfx::Size& dst_size_in_pixel, |
| 498 bool readback_config_rgb565, |
| 497 const base::Callback<void(bool, const SkBitmap&)>& callback, | 499 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 498 scoped_ptr<cc::CopyOutputResult> result); | 500 scoped_ptr<cc::CopyOutputResult> result); |
| 499 static void PrepareBitmapCopyOutputResult( | 501 static void PrepareBitmapCopyOutputResult( |
| 500 const gfx::Size& dst_size_in_pixel, | 502 const gfx::Size& dst_size_in_pixel, |
| 501 const base::Callback<void(bool, const SkBitmap&)>& callback, | 503 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 502 scoped_ptr<cc::CopyOutputResult> result); | 504 scoped_ptr<cc::CopyOutputResult> result); |
| 503 static void CopyFromCompositingSurfaceHasResultForVideo( | 505 static void CopyFromCompositingSurfaceHasResultForVideo( |
| 504 base::WeakPtr<RenderWidgetHostViewAura> rwhva, | 506 base::WeakPtr<RenderWidgetHostViewAura> rwhva, |
| 505 scoped_refptr<OwnedMailbox> subscriber_texture, | 507 scoped_refptr<OwnedMailbox> subscriber_texture, |
| 506 scoped_refptr<media::VideoFrame> video_frame, | 508 scoped_refptr<media::VideoFrame> video_frame, |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 // passed to windowless plugins like Flash/Silverlight, etc as the | 805 // passed to windowless plugins like Flash/Silverlight, etc as the |
| 804 // container window. | 806 // container window. |
| 805 HWND plugin_parent_window_; | 807 HWND plugin_parent_window_; |
| 806 #endif | 808 #endif |
| 807 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 809 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 808 }; | 810 }; |
| 809 | 811 |
| 810 } // namespace content | 812 } // namespace content |
| 811 | 813 |
| 812 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 814 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |