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

Unified Diff: ui/aura/hostwm/host_window_delegate.cc

Issue 10789018: aura: Add X11 host window management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep ash switches alphabetized. Created 8 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
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

Powered by Google App Engine
This is Rietveld 408576698