OLD | NEW |
| (Empty) |
1 // Copyright 2014 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_CONTROLLER_H_ | |
6 #define UI_VIEWS_COREWM_TRANSIENT_WINDOW_CONTROLLER_H_ | |
7 | |
8 #include "ui/aura/client/transient_window_client.h" | |
9 #include "ui/views/views_export.h" | |
10 | |
11 namespace views { | |
12 namespace corewm { | |
13 | |
14 // TransientWindowClient implementation. Uses TransientWindowManager to handle | |
15 // tracking transient per window. | |
16 class VIEWS_EXPORT TransientWindowController | |
17 : public aura::client::TransientWindowClient { | |
18 public: | |
19 TransientWindowController(); | |
20 virtual ~TransientWindowController(); | |
21 | |
22 // TransientWindowClient: | |
23 virtual void AddTransientChild(aura::Window* parent, | |
24 aura::Window* child) OVERRIDE; | |
25 virtual void RemoveTransientChild(aura::Window* parent, | |
26 aura::Window* child) OVERRIDE; | |
27 virtual aura::Window* GetTransientParent(aura::Window* window) OVERRIDE; | |
28 virtual const aura::Window* GetTransientParent( | |
29 const aura::Window* window) OVERRIDE; | |
30 | |
31 private: | |
32 DISALLOW_COPY_AND_ASSIGN(TransientWindowController); | |
33 }; | |
34 | |
35 } // namespace corewm | |
36 } // namespace views | |
37 | |
38 #endif // UI_VIEWS_COREWM_TRANSIENT_WINDOW_CONTROLLER_H_ | |
OLD | NEW |