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

Unified Diff: aura/window_delegate.h

Issue 7534002: Shell of implementation for embedded windows. At this point this is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 9 years, 5 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') | build/all.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/window_delegate.h
diff --git a/aura/window_delegate.h b/aura/window_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..69637cf9de440ddd82d3ecc02fe390f16bd8f6fa
--- /dev/null
+++ b/aura/window_delegate.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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 AURA_WINDOW_DELEGATE_H_
+#define AURA_WINDOW_DELEGATE_H_
+#pragma once
+
+namespace aura {
+
+// Delegate interface for aura::Window.
+class WindowDelegate {
+ public:
+ // 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() {}
+};
+
+} // namespace aura
+
+#endif // AURA_WINDOW_DELEGATE_H_
« no previous file with comments | « aura/window.cc ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698