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