Index: ui/aura/hostwm/host_window_delegate.cc |
diff --git a/ui/aura/hostwm/host_window_delegate.cc b/ui/aura/hostwm/host_window_delegate.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fdecbf59f0005eff23a62a387d55264e9b281363 |
--- /dev/null |
+++ b/ui/aura/hostwm/host_window_delegate.cc |
@@ -0,0 +1,25 @@ |
+// Copyright (c) 2012 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. |
+ |
+#include "ui/aura/hostwm/host_window_delegate.h" |
+ |
+#include "ui/aura/window.h" |
+#include "ui/aura/window_property.h" |
+ |
+DECLARE_WINDOW_PROPERTY_TYPE(aura::HostWindowDelegate*) |
+ |
+namespace aura { |
+ |
+DEFINE_LOCAL_WINDOW_PROPERTY_KEY( |
+ HostWindowDelegate*, kHostWindowDelegateKey, NULL); |
+ |
+void SetHostWindowDelegate(Window* window, HostWindowDelegate* delegate) { |
+ window->SetProperty(kHostWindowDelegateKey, delegate); |
+} |
+ |
+HostWindowDelegate* GetHostWindowDelegate(Window* window) { |
+ return window->GetProperty(kHostWindowDelegateKey); |
+} |
+ |
+} // namespace aura |