| 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_
|
|
|