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