| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VISIBILITY_CONTROLLER_H_ | 5 #ifndef UI_WM_CORE_VISIBILITY_CONTROLLER_H_ |
| 6 #define UI_WM_CORE_VISIBILITY_CONTROLLER_H_ | 6 #define UI_WM_CORE_VISIBILITY_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "ui/aura/client/visibility_client.h" | 10 #include "ui/aura/client/visibility_client.h" |
| 11 #include "ui/wm/core/wm_core_export.h" | 11 #include "ui/wm/core/wm_core_export.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace wm { |
| 14 namespace corewm { | |
| 15 | 14 |
| 16 class WM_CORE_EXPORT VisibilityController | 15 class WM_CORE_EXPORT VisibilityController |
| 17 : public aura::client::VisibilityClient { | 16 : public aura::client::VisibilityClient { |
| 18 public: | 17 public: |
| 19 VisibilityController(); | 18 VisibilityController(); |
| 20 virtual ~VisibilityController(); | 19 virtual ~VisibilityController(); |
| 21 | 20 |
| 22 protected: | 21 protected: |
| 23 // Subclasses override if they want to call a different implementation of | 22 // Subclasses override if they want to call a different implementation of |
| 24 // this function. | 23 // this function. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Whether the visibility animations on child windows were originally enabled. | 62 // Whether the visibility animations on child windows were originally enabled. |
| 64 const bool original_enabled_; | 63 const bool original_enabled_; |
| 65 | 64 |
| 66 DISALLOW_COPY_AND_ASSIGN(SuspendChildWindowVisibilityAnimations); | 65 DISALLOW_COPY_AND_ASSIGN(SuspendChildWindowVisibilityAnimations); |
| 67 }; | 66 }; |
| 68 | 67 |
| 69 // Tells |window| to animate visibility changes to its children. | 68 // Tells |window| to animate visibility changes to its children. |
| 70 void WM_CORE_EXPORT SetChildWindowVisibilityChangesAnimated( | 69 void WM_CORE_EXPORT SetChildWindowVisibilityChangesAnimated( |
| 71 aura::Window* window); | 70 aura::Window* window); |
| 72 | 71 |
| 73 } // namespace corewm | 72 } // namespace wm |
| 74 } // namespace views | |
| 75 | 73 |
| 76 #endif // UI_WM_CORE_VISIBILITY_CONTROLLER_H_ | 74 #endif // UI_WM_CORE_VISIBILITY_CONTROLLER_H_ |
| OLD | NEW |