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 ASH_WM_STACKING_CONTROLLER_H_ | 5 #ifndef ASH_WM_STACKING_CONTROLLER_H_ |
6 #define ASH_WM_STACKING_CONTROLLER_H_ | 6 #define ASH_WM_STACKING_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "ui/aura/client/window_tree_client.h" | 12 #include "ui/aura/client/window_tree_client.h" |
13 | 13 |
14 namespace aura{ | |
15 class RootWindow; | |
16 } | |
17 | |
18 namespace ash { | 14 namespace ash { |
19 | |
20 namespace internal { | 15 namespace internal { |
21 class AlwaysOnTopController; | 16 class AlwaysOnTopController; |
22 } | 17 } |
23 | 18 |
24 class ASH_EXPORT StackingController : public aura::client::WindowTreeClient { | 19 class ASH_EXPORT StackingController : public aura::client::WindowTreeClient { |
25 public: | 20 public: |
26 StackingController(); | 21 StackingController(); |
27 virtual ~StackingController(); | 22 virtual ~StackingController(); |
28 | 23 |
29 // Overridden from aura::client::WindowTreeClient: | 24 // Overridden from aura::client::WindowTreeClient: |
30 virtual aura::Window* GetDefaultParent(aura::Window* context, | 25 virtual aura::Window* GetDefaultParent(aura::Window* context, |
31 aura::Window* window, | 26 aura::Window* window, |
32 const gfx::Rect& bounds) OVERRIDE; | 27 const gfx::Rect& bounds) OVERRIDE; |
33 | 28 |
34 private: | 29 private: |
35 // Returns corresponding system modal container for a modal window. | 30 // Returns corresponding system modal container for a modal window. |
36 // If screen lock is not active, all system modal windows are placed into the | 31 // If screen lock is not active, all system modal windows are placed into the |
37 // normal modal container. | 32 // normal modal container. |
38 // Otherwise those that originate from LockScreen container and above are | 33 // Otherwise those that originate from LockScreen container and above are |
39 // placed in the screen lock modal container. | 34 // placed in the screen lock modal container. |
40 aura::Window* GetSystemModalContainer(aura::RootWindow* root, | 35 aura::Window* GetSystemModalContainer(aura::Window* root, |
41 aura::Window* window) const; | 36 aura::Window* window) const; |
42 | 37 |
43 DISALLOW_COPY_AND_ASSIGN(StackingController); | 38 DISALLOW_COPY_AND_ASSIGN(StackingController); |
44 }; | 39 }; |
45 | 40 |
46 } // namespace ash | 41 } // namespace ash |
47 | 42 |
48 #endif // ASH_WM_STACKING_CONTROLLER_H_ | 43 #endif // ASH_WM_STACKING_CONTROLLER_H_ |
OLD | NEW |