Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 12090109: Tab Capture: Backing store readbacks to YV12 VideoFrames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes suggested by wjia Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 const gfx::Size& accelerated_dst_size, 111 const gfx::Size& accelerated_dst_size,
112 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 112 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
113 #if defined(TOOLKIT_GTK) 113 #if defined(TOOLKIT_GTK)
114 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect, 114 virtual bool CopyFromBackingStoreToGtkWindow(const gfx::Rect& dest_rect,
115 GdkWindow* target) OVERRIDE; 115 GdkWindow* target) OVERRIDE;
116 #elif defined(OS_MACOSX) 116 #elif defined(OS_MACOSX)
117 virtual gfx::Size GetBackingStoreSize() OVERRIDE; 117 virtual gfx::Size GetBackingStoreSize() OVERRIDE;
118 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect, 118 virtual bool CopyFromBackingStoreToCGContext(const CGRect& dest_rect,
119 CGContextRef target) OVERRIDE; 119 CGContextRef target) OVERRIDE;
120 #endif 120 #endif
121 virtual bool CanCopyToVideoFrame() const OVERRIDE;
122 virtual void CopyFromBackingStoreToVideoFrame(
123 const gfx::Rect& src_rect,
124 const gfx::Size& dst_size,
125 const base::Callback<void(media::VideoFrame*)>& callback) OVERRIDE;
121 virtual void EnableFullAccessibilityMode() OVERRIDE; 126 virtual void EnableFullAccessibilityMode() OVERRIDE;
122 virtual void ForwardMouseEvent( 127 virtual void ForwardMouseEvent(
123 const WebKit::WebMouseEvent& mouse_event) OVERRIDE; 128 const WebKit::WebMouseEvent& mouse_event) OVERRIDE;
124 virtual void ForwardWheelEvent( 129 virtual void ForwardWheelEvent(
125 const WebKit::WebMouseWheelEvent& wheel_event) OVERRIDE; 130 const WebKit::WebMouseWheelEvent& wheel_event) OVERRIDE;
126 virtual void ForwardKeyboardEvent( 131 virtual void ForwardKeyboardEvent(
127 const NativeWebKeyboardEvent& key_event) OVERRIDE; 132 const NativeWebKeyboardEvent& key_event) OVERRIDE;
128 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE; 133 virtual const gfx::Vector2d& GetLastScrollOffset() const OVERRIDE;
129 virtual RenderProcessHost* GetProcess() const OVERRIDE; 134 virtual RenderProcessHost* GetProcess() const OVERRIDE;
130 virtual int GetRoutingID() const OVERRIDE; 135 virtual int GetRoutingID() const OVERRIDE;
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 #if defined(OS_WIN) 883 #if defined(OS_WIN)
879 std::list<HWND> dummy_windows_for_activation_; 884 std::list<HWND> dummy_windows_for_activation_;
880 #endif 885 #endif
881 886
882 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 887 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
883 }; 888 };
884 889
885 } // namespace content 890 } // namespace content
886 891
887 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 892 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698