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