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

Unified Diff: aura/window_delegate.h

Issue 7749020: Revert 98306 - Create a new views_aura_desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « aura/window.cc ('k') | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/window_delegate.h
===================================================================
--- aura/window_delegate.h (revision 98311)
+++ aura/window_delegate.h (working copy)
@@ -6,17 +6,14 @@
#define AURA_WINDOW_DELEGATE_H_
#pragma once
-namespace gfx {
-class Canvas;
-}
-
namespace aura {
// Delegate interface for aura::Window.
class WindowDelegate {
public:
- // Asks the delegate to paint window contents into the supplied canvas.
- virtual void OnPaint(gfx::Canvas* canvas) = 0;
+ // Asks the delegate to paint to the window. The delegate should call back
+ // to the window with SetCanvas.
+ virtual void OnPaint(const gfx::Rect& bounds) = 0;
protected:
virtual ~WindowDelegate() {}
« no previous file with comments | « aura/window.cc ('k') | ui/gfx/canvas_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698