| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_STACKING_CONTROLLER_H_ | 5 #ifndef UI_AURA_SHELL_STACKING_CONTROLLER_H_ |
| 6 #define UI_AURA_SHELL_STACKING_CONTROLLER_H_ | 6 #define UI_AURA_SHELL_STACKING_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // activation. | 28 // activation. |
| 29 static aura::Window* GetActivatableWindow(aura::Window* window); | 29 static aura::Window* GetActivatableWindow(aura::Window* window); |
| 30 | 30 |
| 31 // Overridden from aura::StackingClient: | 31 // Overridden from aura::StackingClient: |
| 32 virtual void AddChildToDefaultParent(aura::Window* window) OVERRIDE; | 32 virtual void AddChildToDefaultParent(aura::Window* window) OVERRIDE; |
| 33 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; | 33 virtual bool CanActivateWindow(aura::Window* window) const OVERRIDE; |
| 34 virtual aura::Window* GetTopmostWindowToActivate( | 34 virtual aura::Window* GetTopmostWindowToActivate( |
| 35 aura::Window* ignore) const OVERRIDE; | 35 aura::Window* ignore) const OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // Returns corresponding modal container for a modal window. |
| 39 // If screen lock is not active, all modal windows are placed into the |
| 40 // normal modal container. |
| 41 // Otherwise those that originate from LockScreen container and above are |
| 42 // placed in the screen lock modal container. |
| 43 aura::Window* GetModalContainer(aura::Window* window) const; |
| 44 |
| 38 scoped_ptr<internal::AlwaysOnTopController> always_on_top_controller_; | 45 scoped_ptr<internal::AlwaysOnTopController> always_on_top_controller_; |
| 39 | 46 |
| 40 DISALLOW_COPY_AND_ASSIGN(StackingController); | 47 DISALLOW_COPY_AND_ASSIGN(StackingController); |
| 41 }; | 48 }; |
| 42 | 49 |
| 43 } // namespace internal | 50 } // namespace internal |
| 44 } // namespace aura_shell | 51 } // namespace aura_shell |
| 45 | 52 |
| 46 #endif // UI_AURA_SHELL_STACKING_CONTROLLER_H_ | 53 #endif // UI_AURA_SHELL_STACKING_CONTROLLER_H_ |
| OLD | NEW |