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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_painting_observer.h

Issue 6010004: Refactor RenderWidgetHost::set_paint_observer() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove helper classes per review Created 9 years, 11 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
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
7 #pragma once
8
9 class BackingStore;
10 class RenderWidgetHost;
11
12 namespace gfx {
13 class Size;
14 }
15
16 // This class can be used to observe painting events for a RenderWidgetHost.
17 // Its primary goal in Chrome is to allow thumbnails to be generated.
18 class RenderWidgetHostPaintingObserver {
19 public:
20 // Indicates the RenderWidgetHost is about to destroy the backing store. The
21 // backing store will still be valid when this call is made.
22 virtual void WidgetWillDestroyBackingStore(RenderWidgetHost* widget,
23 BackingStore* backing_store) = 0;
24
25 // Indicates that the RenderWidgetHost just updated the backing store.
26 virtual void WidgetDidUpdateBackingStore(RenderWidgetHost* widget) = 0;
27
28 // This notifies the painting observer that a PaintAtSizeACK was
29 // received.
30 virtual void WidgetDidReceivePaintAtSizeAck(
31 RenderWidgetHost* widget,
32 int tag,
33 const gfx::Size& size) = 0;
34
35 protected:
36 virtual ~RenderWidgetHostPaintingObserver() {}
37 };
38
39 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698