| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_AURA_WINDOW_DELEGATE_H_ | 5 #ifndef UI_AURA_WINDOW_DELEGATE_H_ |
| 6 #define UI_AURA_WINDOW_DELEGATE_H_ | 6 #define UI_AURA_WINDOW_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Called from Window's destructor before OnWindowDestroyed and before the | 63 // Called from Window's destructor before OnWindowDestroyed and before the |
| 64 // children have been destroyed. | 64 // children have been destroyed. |
| 65 virtual void OnWindowDestroying() = 0; | 65 virtual void OnWindowDestroying() = 0; |
| 66 | 66 |
| 67 // Called when the Window has been destroyed (i.e. from its destructor). This | 67 // Called when the Window has been destroyed (i.e. from its destructor). This |
| 68 // is called after OnWindowDestroying and after the children have been | 68 // is called after OnWindowDestroying and after the children have been |
| 69 // deleted. | 69 // deleted. |
| 70 // The delegate can use this as an opportunity to delete itself if necessary. | 70 // The delegate can use this as an opportunity to delete itself if necessary. |
| 71 virtual void OnWindowDestroyed() = 0; | 71 virtual void OnWindowDestroyed() = 0; |
| 72 | 72 |
| 73 // Called when the visibility of a Window changed. |
| 74 virtual void OnWindowVisibilityChanged(bool visible) = 0; |
| 75 |
| 73 protected: | 76 protected: |
| 74 virtual ~WindowDelegate() {} | 77 virtual ~WindowDelegate() {} |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace aura | 80 } // namespace aura |
| 78 | 81 |
| 79 #endif // UI_AURA_WINDOW_DELEGATE_H_ | 82 #endif // UI_AURA_WINDOW_DELEGATE_H_ |
| OLD | NEW |