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

Unified Diff: chrome/browser/renderer_host/render_widget_host_painting_observer.h

Issue 661237: This adds in the ability for Chrome to generate windows with snapshots of all... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_widget_host_painting_observer.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_painting_observer.h (revision 45523)
+++ chrome/browser/renderer_host/render_widget_host_painting_observer.h (working copy)
@@ -5,9 +5,16 @@
#ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
#define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
+#include "app/surface/transport_dib.h"
+
class BackingStore;
class RenderWidgetHost;
+class SkBitmap;
+namespace gfx {
+class Size;
+}
+
// This class can be used to observe painting events for a RenderWidgetHost.
// Its primary goal in Chrome is to allow thumbnails to be generated.
class RenderWidgetHostPaintingObserver {
@@ -19,6 +26,13 @@
// Indicates that the RenderWidgetHost just updated the backing store.
virtual void WidgetDidUpdateBackingStore(RenderWidgetHost* widget) = 0;
+
+ // This notifies the painting observer that a PaintAtSizeACK was
+ // received.
+ virtual void WidgetDidReceivePaintAtSizeAck(
+ RenderWidgetHost* widget,
+ const TransportDIB::Handle& dib_handle,
+ const gfx::Size& size) = 0;
};
#endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698