Index: aura/desktop_host.h |
diff --git a/aura/desktop_host.h b/aura/desktop_host.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d0e7d4aa28f2a4be6fd317891cfe4afde7c18155 |
--- /dev/null |
+++ b/aura/desktop_host.h |
@@ -0,0 +1,45 @@ |
+// 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_DESKTOP_HOST_H_ |
+#define AURA_DESKTOP_HOST_H_ |
+#pragma once |
+ |
+#include "ui/gfx/native_widget_types.h" |
+ |
+namespace gfx { |
+class Rect; |
+class Size; |
+} |
+ |
+namespace aura { |
+ |
+class Desktop; |
+ |
+// DesktopHost bridges between a native window and the embedded Desktop. It |
+// provides the accelerated widget and maps events from the native os to aura. |
+class DesktopHost { |
+ public: |
+ virtual ~DesktopHost() {} |
+ |
+ // Creates a new DesktopHost. The caller owns the returned value. |
+ static DesktopHost* Create(const gfx::Rect& bounds); |
+ |
+ // Sets the Desktop this DesktopHost is hosting. DesktopHost does not own the |
+ // Desktop. |
+ virtual void SetDesktop(Desktop* desktop) = 0; |
+ |
+ // Returns the accelerated widget. |
+ virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; |
+ |
+ // Shows the DesktopHost. |
+ virtual void Show() = 0; |
+ |
+ // Returns the size of the DesktopHost. |
+ virtual gfx::Size GetSize() = 0; |
+}; |
+ |
+} // namespace aura |
+ |
+#endif // AURA_DESKTOP_HOST_H_ |