OLD | NEW |
| (Empty) |
1 // Copyright (c) 2013 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_VIEWS_COREWM_TRANSIENT_WINDOW_STACKING_CLIENT_H_ | |
6 #define UI_VIEWS_COREWM_TRANSIENT_WINDOW_STACKING_CLIENT_H_ | |
7 | |
8 #include "ui/aura/client/window_stacking_client.h" | |
9 #include "ui/views/views_export.h" | |
10 | |
11 namespace views { | |
12 namespace corewm { | |
13 | |
14 class TransientWindowManager; | |
15 | |
16 class VIEWS_EXPORT TransientWindowStackingClient | |
17 : public aura::client::WindowStackingClient { | |
18 public: | |
19 TransientWindowStackingClient(); | |
20 virtual ~TransientWindowStackingClient(); | |
21 | |
22 // WindowStackingClient: | |
23 virtual bool AdjustStacking(aura::Window** child, | |
24 aura::Window** target, | |
25 aura::Window::StackDirection* direction) OVERRIDE; | |
26 | |
27 private: | |
28 // Purely for DCHECKs. | |
29 friend class TransientWindowManager; | |
30 | |
31 static TransientWindowStackingClient* instance_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(TransientWindowStackingClient); | |
34 }; | |
35 | |
36 } // namespace corewm | |
37 } // namespace views | |
38 | |
39 #endif // UI_VIEWS_COREWM_TRANSIENT_WINDOW_STACKING_CLIENT_H_ | |
OLD | NEW |