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

Unified Diff: chrome/browser/ui/aura/stacking_client_aurawin.h

Issue 11364053: make StackingClient dispatch to either ash or desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove file Created 8 years, 1 month 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: 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_

Powered by Google App Engine
This is Rietveld 408576698