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 ASH_DISPLAY_DISPLAY_CONFIGURATOR_ANIMATION_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_CONFIGURATOR_ANIMATION_H_ |
6 #define ASH_DISPLAY_DISPLAY_CONFIGURATOR_ANIMATION_H_ | 6 #define ASH_DISPLAY_DISPLAY_CONFIGURATOR_ANIMATION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const ui::DisplayConfigurator::DisplayStateList& displays, | 49 const ui::DisplayConfigurator::DisplayStateList& displays, |
50 ui::MultipleDisplayState failed_new_state) override; | 50 ui::MultipleDisplayState failed_new_state) override; |
51 | 51 |
52 private: | 52 private: |
53 // Clears all hiding layers. Note that in case that this method is called | 53 // Clears all hiding layers. Note that in case that this method is called |
54 // during an animation, the method call will cancel all of the animations | 54 // during an animation, the method call will cancel all of the animations |
55 // and *not* call the registered callback. | 55 // and *not* call the registered callback. |
56 void ClearHidingLayers(); | 56 void ClearHidingLayers(); |
57 | 57 |
58 std::map<aura::Window*, ui::Layer*> hiding_layers_; | 58 std::map<aura::Window*, ui::Layer*> hiding_layers_; |
59 scoped_ptr<base::OneShotTimer<DisplayConfiguratorAnimation> > timer_; | 59 scoped_ptr<base::OneShotTimer> timer_; |
60 base::WeakPtrFactory<DisplayConfiguratorAnimation> weak_ptr_factory_; | 60 base::WeakPtrFactory<DisplayConfiguratorAnimation> weak_ptr_factory_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(DisplayConfiguratorAnimation); | 62 DISALLOW_COPY_AND_ASSIGN(DisplayConfiguratorAnimation); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace ash | 65 } // namespace ash |
66 | 66 |
67 #endif // ASH_DISPLAY_DISPLAY_CONFIGURATION_CONTROLLER_H_ | 67 #endif // ASH_DISPLAY_DISPLAY_CONFIGURATION_CONTROLLER_H_ |
OLD | NEW |