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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.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_VIEW_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 int error_code) OVERRIDE; 199 int error_code) OVERRIDE;
200 // called by WebContentsImpl before DestroyWindow 200 // called by WebContentsImpl before DestroyWindow
201 virtual void WillWmDestroy() OVERRIDE; 201 virtual void WillWmDestroy() OVERRIDE;
202 virtual void Destroy() OVERRIDE; 202 virtual void Destroy() OVERRIDE;
203 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 203 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
204 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 204 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
205 virtual void CopyFromCompositingSurface( 205 virtual void CopyFromCompositingSurface(
206 const gfx::Rect& src_subrect, 206 const gfx::Rect& src_subrect,
207 const gfx::Size& dst_size, 207 const gfx::Size& dst_size,
208 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; 208 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
209 virtual void CopyFromCompositingSurfaceToVideoFrame(
210 const gfx::Rect& src_subrect,
211 const gfx::Size& dst_size,
212 const base::Callback<void(media::VideoFrame*)>& callback) OVERRIDE;
209 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 213 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
210 virtual void ProcessAckedTouchEvent(const WebKit::WebTouchEvent& touch, 214 virtual void ProcessAckedTouchEvent(const WebKit::WebTouchEvent& touch,
211 InputEventAckState ack_result) OVERRIDE; 215 InputEventAckState ack_result) OVERRIDE;
212 virtual void SetHasHorizontalScrollbar( 216 virtual void SetHasHorizontalScrollbar(
213 bool has_horizontal_scrollbar) OVERRIDE; 217 bool has_horizontal_scrollbar) OVERRIDE;
214 virtual void SetScrollOffsetPinning( 218 virtual void SetScrollOffsetPinning(
215 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 219 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
216 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 220 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
217 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 221 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
218 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 222 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 bool touch_events_enabled_; 583 bool touch_events_enabled_;
580 584
581 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; 585 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_;
582 586
583 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 587 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
584 }; 588 };
585 589
586 } // namespace content 590 } // namespace content
587 591
588 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 592 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698