| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_AURA_SHELL_STACKING_CONTROLLER_H_ | |
| 6 #define UI_AURA_SHELL_STACKING_CONTROLLER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "ui/aura/client/stacking_client.h" | |
| 13 | |
| 14 namespace aura_shell { | |
| 15 namespace internal { | |
| 16 | |
| 17 class AlwaysOnTopController; | |
| 18 | |
| 19 class StackingController : public aura::client::StackingClient { | |
| 20 public: | |
| 21 StackingController(); | |
| 22 virtual ~StackingController(); | |
| 23 | |
| 24 // Overridden from aura::client::StackingClient: | |
| 25 virtual aura::Window* GetDefaultParent(aura::Window* window) OVERRIDE; | |
| 26 | |
| 27 private: | |
| 28 // Returns corresponding modal container for a modal window. | |
| 29 // If screen lock is not active, all modal windows are placed into the | |
| 30 // normal modal container. | |
| 31 // Otherwise those that originate from LockScreen container and above are | |
| 32 // placed in the screen lock modal container. | |
| 33 aura::Window* GetModalContainer(aura::Window* window) const; | |
| 34 | |
| 35 scoped_ptr<internal::AlwaysOnTopController> always_on_top_controller_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(StackingController); | |
| 38 }; | |
| 39 | |
| 40 } // namespace internal | |
| 41 } // namespace aura_shell | |
| 42 | |
| 43 #endif // UI_AURA_SHELL_STACKING_CONTROLLER_H_ | |
| OLD | NEW |