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 #include "ash/wm/visibility_controller.h" | 5 #include "ash/wm/visibility_controller.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/wm/window_animations.h" | 8 #include "ash/wm/window_animations.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/aura/window_property.h" | 10 #include "ui/aura/window_property.h" |
11 #include "ui/gfx/compositor/layer.h" | 11 #include "ui/compositor/layer.h" |
12 | 12 |
13 DECLARE_WINDOW_PROPERTY_TYPE(bool) | 13 DECLARE_WINDOW_PROPERTY_TYPE(bool) |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 namespace internal { | 16 namespace internal { |
17 // Property set on all windows whose child windows' visibility changes are | 17 // Property set on all windows whose child windows' visibility changes are |
18 // animated. | 18 // animated. |
19 DEFINE_LOCAL_WINDOW_PROPERTY_KEY( | 19 DEFINE_LOCAL_WINDOW_PROPERTY_KEY( |
20 bool, kChildWindowVisibilityChangesAnimatedKey, false); | 20 bool, kChildWindowVisibilityChangesAnimatedKey, false); |
21 | 21 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 window->layer()->SetVisible(visible); | 59 window->layer()->SetVisible(visible); |
60 } | 60 } |
61 | 61 |
62 } // namespace internal | 62 } // namespace internal |
63 | 63 |
64 void SetChildWindowVisibilityChangesAnimated(aura::Window* window) { | 64 void SetChildWindowVisibilityChangesAnimated(aura::Window* window) { |
65 window->SetProperty(internal::kChildWindowVisibilityChangesAnimatedKey, true); | 65 window->SetProperty(internal::kChildWindowVisibilityChangesAnimatedKey, true); |
66 } | 66 } |
67 | 67 |
68 } // namespace ash | 68 } // namespace ash |
OLD | NEW |