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