| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_ |
| 6 #define 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 | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/surface/transport_dib.h" | |
| 10 | |
| 11 class BackingStore; | 9 class BackingStore; |
| 12 class RenderWidgetHost; | 10 class RenderWidgetHost; |
| 13 class SkBitmap; | 11 class SkBitmap; |
| 14 | 12 |
| 15 namespace gfx { | 13 namespace gfx { |
| 16 class Size; | 14 class Size; |
| 17 } | 15 } |
| 18 | 16 |
| 19 // This class can be used to observe painting events for a RenderWidgetHost. | 17 // This class can be used to observe painting events for a RenderWidgetHost. |
| 20 // Its primary goal in Chrome is to allow thumbnails to be generated. | 18 // Its primary goal in Chrome is to allow thumbnails to be generated. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 33 virtual void WidgetDidReceivePaintAtSizeAck( | 31 virtual void WidgetDidReceivePaintAtSizeAck( |
| 34 RenderWidgetHost* widget, | 32 RenderWidgetHost* widget, |
| 35 int tag, | 33 int tag, |
| 36 const gfx::Size& size) = 0; | 34 const gfx::Size& size) = 0; |
| 37 | 35 |
| 38 protected: | 36 protected: |
| 39 virtual ~RenderWidgetHostPaintingObserver() {} | 37 virtual ~RenderWidgetHostPaintingObserver() {} |
| 40 }; | 38 }; |
| 41 | 39 |
| 42 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_ | 40 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_ |
| OLD | NEW |