OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURA_H_ |
| 6 #define CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURA_H_ |
| 7 |
| 8 #include "ui/aura/client/stacking_client.h" |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/ui/host_desktop.h" |
| 14 |
| 15 namespace ash { |
| 16 class StackingController; |
| 17 } |
| 18 |
| 19 namespace aura { |
| 20 class DesktopStackingClient; |
| 21 class Window; |
| 22 } |
| 23 |
| 24 // A stacking client for the two worlds aura, dispatches to either a |
| 25 // DesktopStackingClient or an ash::StackingController. |
| 26 class StackingClientAura : public aura::client::StackingClient { |
| 27 public: |
| 28 StackingClientAura(); |
| 29 virtual ~StackingClientAura(); |
| 30 |
| 31 // Overridden from client::StackingClient: |
| 32 virtual aura::Window* GetDefaultParent(aura::Window* context, |
| 33 aura::Window* window, |
| 34 const gfx::Rect& bounds) OVERRIDE; |
| 35 |
| 36 private: |
| 37 scoped_ptr<aura::DesktopStackingClient> desktop_stacking_client_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(StackingClientAura); |
| 40 }; |
| 41 |
| 42 #endif // CHROME_BROWSER_UI_AURA_STACKING_CLIENT_AURA_H_ |
OLD | NEW |