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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_widget_host_painting_observer.h
diff --git a/chrome/browser/renderer_host/render_widget_host_painting_observer.h b/chrome/browser/renderer_host/render_widget_host_painting_observer.h
deleted file mode 100644
index 3c6c8679fafa56c107cc2f3ea26e61dfdc0ff4a0..0000000000000000000000000000000000000000
--- a/chrome/browser/renderer_host/render_widget_host_painting_observer.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
-#define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_
-#pragma once
-
-class BackingStore;
-class RenderWidgetHost;
-
-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 {
- public:
- // Indicates the RenderWidgetHost is about to destroy the backing store. The
- // backing store will still be valid when this call is made.
- virtual void WidgetWillDestroyBackingStore(RenderWidgetHost* widget,
- BackingStore* backing_store) = 0;
-
- // 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,
- int tag,
- const gfx::Size& size) = 0;
-
- protected:
- virtual ~RenderWidgetHostPaintingObserver() {}
-};
-
-#endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_PAINTING_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698