[email protected] | e871f1a0 | 2012-01-18 20:03:46 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 7585967 | 2011-12-23 01:04:56 | [diff] [blame] | 5 | #ifndef ASH_WM_STACKING_CONTROLLER_H_ |
6 | #define ASH_WM_STACKING_CONTROLLER_H_ | ||||
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 7 | |
8 | #include "base/basictypes.h" | ||||
9 | #include "base/compiler_specific.h" | ||||
[email protected] | 488b4204 | 2011-11-15 00:20:18 | [diff] [blame] | 10 | #include "base/memory/scoped_ptr.h" |
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 11 | #include "ui/aura/client/stacking_client.h" |
12 | |||||
[email protected] | f059c694 | 2012-07-21 14:27:57 | [diff] [blame^] | 13 | namespace aura{ |
14 | class RootWindow; | ||||
15 | } | ||||
16 | |||||
[email protected] | 55f59335 | 2011-12-24 05:42:46 | [diff] [blame] | 17 | namespace ash { |
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 18 | namespace internal { |
19 | |||||
[email protected] | 488b4204 | 2011-11-15 00:20:18 | [diff] [blame] | 20 | class AlwaysOnTopController; |
21 | |||||
[email protected] | ee1e1a2 | 2011-12-15 01:51:10 | [diff] [blame] | 22 | class StackingController : public aura::client::StackingClient { |
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 23 | public: |
24 | StackingController(); | ||||
25 | virtual ~StackingController(); | ||||
26 | |||||
[email protected] | ee1e1a2 | 2011-12-15 01:51:10 | [diff] [blame] | 27 | // Overridden from aura::client::StackingClient: |
[email protected] | 20c5976 | 2012-06-23 01:10:24 | [diff] [blame] | 28 | virtual aura::Window* GetDefaultParent(aura::Window* window, |
29 | const gfx::Rect& bounds) OVERRIDE; | ||||
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 30 | |
31 | private: | ||||
[email protected] | e871f1a0 | 2012-01-18 20:03:46 | [diff] [blame] | 32 | // Returns corresponding system modal container for a modal window. |
33 | // If screen lock is not active, all system modal windows are placed into the | ||||
[email protected] | 55bdb50 | 2011-11-29 20:26:25 | [diff] [blame] | 34 | // normal modal container. |
35 | // Otherwise those that originate from LockScreen container and above are | ||||
36 | // placed in the screen lock modal container. | ||||
[email protected] | f059c694 | 2012-07-21 14:27:57 | [diff] [blame^] | 37 | aura::Window* GetSystemModalContainer(aura::RootWindow* root, |
38 | aura::Window* window) const; | ||||
[email protected] | 55bdb50 | 2011-11-29 20:26:25 | [diff] [blame] | 39 | |
[email protected] | f059c694 | 2012-07-21 14:27:57 | [diff] [blame^] | 40 | // Returns the AlwaysOnTopController of the |root_window|. |
[email protected] | 20c5976 | 2012-06-23 01:10:24 | [diff] [blame] | 41 | internal::AlwaysOnTopController* GetAlwaysOnTopController( |
[email protected] | f059c694 | 2012-07-21 14:27:57 | [diff] [blame^] | 42 | aura::RootWindow* root_window); |
[email protected] | 488b4204 | 2011-11-15 00:20:18 | [diff] [blame] | 43 | |
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 44 | DISALLOW_COPY_AND_ASSIGN(StackingController); |
45 | }; | ||||
46 | |||||
47 | } // namespace internal | ||||
[email protected] | 55f59335 | 2011-12-24 05:42:46 | [diff] [blame] | 48 | } // namespace ash |
[email protected] | 6377a00 | 2011-11-10 20:26:47 | [diff] [blame] | 49 | |
[email protected] | 7585967 | 2011-12-23 01:04:56 | [diff] [blame] | 50 | #endif // ASH_WM_STACKING_CONTROLLER_H_ |