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

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

Issue 11364053: make StackingClient dispatch to either ash or desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + disable prerender tests on win-aura 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_aura.h
diff --git a/chrome/browser/ui/aura/stacking_client_aura.h b/chrome/browser/ui/aura/stacking_client_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..9bbd5a4f9f01c7f68028c8e3a45b8cf1dfd5423c
--- /dev/null
+++ b/chrome/browser/ui/aura/stacking_client_aura.h
@@ -0,0 +1,42 @@
+// 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_AURA_H_
+#define CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURA_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 ash {
+class StackingController;
+}
+
+namespace aura {
+class DesktopStackingClient;
+class Window;
+}
+
+// A stacking client for the two worlds aura, dispatches to either a
+// DesktopStackingClient or an ash::StackingController.
+class StackingClientAura : public aura::client::StackingClient {
+ public:
+ StackingClientAura();
+ virtual ~StackingClientAura();
+
+ // 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(StackingClientAura);
+};
+
+#endif // CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURA_H_
« no previous file with comments | « chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc ('k') | chrome/browser/ui/aura/stacking_client_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698