| 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, | 212 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| 213 bool readback_config_rgb565) OVERRIDE; | |
| 214 virtual void CopyFromCompositingSurfaceToVideoFrame( | 213 virtual void CopyFromCompositingSurfaceToVideoFrame( |
| 215 const gfx::Rect& src_subrect, | 214 const gfx::Rect& src_subrect, |
| 216 const scoped_refptr<media::VideoFrame>& target, | 215 const scoped_refptr<media::VideoFrame>& target, |
| 217 const base::Callback<void(bool)>& callback) OVERRIDE; | 216 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 218 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 217 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| 219 virtual bool CanSubscribeFrame() const OVERRIDE; | 218 virtual bool CanSubscribeFrame() const OVERRIDE; |
| 220 virtual void BeginFrameSubscription( | 219 virtual void BeginFrameSubscription( |
| 221 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 220 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
| 222 virtual void EndFrameSubscription() OVERRIDE; | 221 virtual void EndFrameSubscription() OVERRIDE; |
| 223 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; | 222 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 void RemovingFromRootWindow(); | 483 void RemovingFromRootWindow(); |
| 485 | 484 |
| 486 // Called after commit for the last reference to the texture going away | 485 // Called after commit for the last reference to the texture going away |
| 487 // after it was released as the frontbuffer. | 486 // after it was released as the frontbuffer. |
| 488 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); | 487 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); |
| 489 | 488 |
| 490 // Called after async thumbnailer task completes. Scales and crops the result | 489 // Called after async thumbnailer task completes. Scales and crops the result |
| 491 // of the copy. | 490 // of the copy. |
| 492 static void CopyFromCompositingSurfaceHasResult( | 491 static void CopyFromCompositingSurfaceHasResult( |
| 493 const gfx::Size& dst_size_in_pixel, | 492 const gfx::Size& dst_size_in_pixel, |
| 494 bool readback_config_rgb565, | |
| 495 const base::Callback<void(bool, const SkBitmap&)>& callback, | 493 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 496 scoped_ptr<cc::CopyOutputResult> result); | 494 scoped_ptr<cc::CopyOutputResult> result); |
| 497 static void PrepareTextureCopyOutputResult( | 495 static void PrepareTextureCopyOutputResult( |
| 498 const gfx::Size& dst_size_in_pixel, | 496 const gfx::Size& dst_size_in_pixel, |
| 499 bool readback_config_rgb565, | |
| 500 const base::Callback<void(bool, const SkBitmap&)>& callback, | 497 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 501 scoped_ptr<cc::CopyOutputResult> result); | 498 scoped_ptr<cc::CopyOutputResult> result); |
| 502 static void PrepareBitmapCopyOutputResult( | 499 static void PrepareBitmapCopyOutputResult( |
| 503 const gfx::Size& dst_size_in_pixel, | 500 const gfx::Size& dst_size_in_pixel, |
| 504 const base::Callback<void(bool, const SkBitmap&)>& callback, | 501 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 505 scoped_ptr<cc::CopyOutputResult> result); | 502 scoped_ptr<cc::CopyOutputResult> result); |
| 506 static void CopyFromCompositingSurfaceHasResultForVideo( | 503 static void CopyFromCompositingSurfaceHasResultForVideo( |
| 507 base::WeakPtr<RenderWidgetHostViewAura> rwhva, | 504 base::WeakPtr<RenderWidgetHostViewAura> rwhva, |
| 508 scoped_refptr<OwnedMailbox> subscriber_texture, | 505 scoped_refptr<OwnedMailbox> subscriber_texture, |
| 509 scoped_refptr<media::VideoFrame> video_frame, | 506 scoped_refptr<media::VideoFrame> video_frame, |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 // passed to windowless plugins like Flash/Silverlight, etc as the | 801 // passed to windowless plugins like Flash/Silverlight, etc as the |
| 805 // container window. | 802 // container window. |
| 806 HWND plugin_parent_window_; | 803 HWND plugin_parent_window_; |
| 807 #endif | 804 #endif |
| 808 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 809 }; | 806 }; |
| 810 | 807 |
| 811 } // namespace content | 808 } // namespace content |
| 812 | 809 |
| 813 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 810 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |