Index: chrome/browser/ui/aura/stacking_client_aurawin.h |
diff --git a/chrome/browser/ui/aura/stacking_client_aurawin.h b/chrome/browser/ui/aura/stacking_client_aurawin.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0cfdef8c66732685c425b2b2c282634b4aff31f9 |
--- /dev/null |
+++ b/chrome/browser/ui/aura/stacking_client_aurawin.h |
@@ -0,0 +1,38 @@ |
+// 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. |
+ |
+#ifndef CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURAWIN_H_ |
+#define CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURAWIN_H_ |
+ |
+#include "ui/aura/client/stacking_client.h" |
+ |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "chrome/browser/ui/host_desktop.h" |
+ |
+namespace aura { |
+class DesktopStackingClient; |
+class Window; |
+} |
+ |
+// A stacking client for the two worlds aura, dispatches to either a |
+// DesktopStackingClient or an ash::StackingController. |
+class StackingClientAuraWin : public aura::client::StackingClient { |
+ public: |
+ StackingClientAuraWin(); |
+ virtual ~StackingClientAuraWin(); |
+ |
+ // Overridden from client::StackingClient: |
+ virtual aura::Window* GetDefaultParent(aura::Window* context, |
+ aura::Window* window, |
+ const gfx::Rect& bounds) OVERRIDE; |
+ |
+ private: |
+ scoped_ptr<aura::DesktopStackingClient> desktop_stacking_client_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(StackingClientAuraWin); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURAWIN_H_ |