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 ASH_DISPLAY_OUTPUT_CONFIGURATOR_ANIMATION_H_ | 5 #ifndef ASH_DISPLAY_OUTPUT_CONFIGURATOR_ANIMATION_H_ |
6 #define ASH_DISPLAY_OUTPUT_CONFIGURATOR_ANIMATION_H_ | 6 #define ASH_DISPLAY_OUTPUT_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 25 matching lines...) Expand all Loading... |
36 // call |callback| once all of the animations have finished. | 36 // call |callback| once all of the animations have finished. |
37 void StartFadeOutAnimation(base::Closure callback); | 37 void StartFadeOutAnimation(base::Closure callback); |
38 | 38 |
39 // Starts the animation to clear the fade-out animation effect | 39 // Starts the animation to clear the fade-out animation effect |
40 // for the all root windows. | 40 // for the all root windows. |
41 void StartFadeInAnimation(); | 41 void StartFadeInAnimation(); |
42 | 42 |
43 protected: | 43 protected: |
44 // chromeos::OutputConfigurator::Observer overrides: | 44 // chromeos::OutputConfigurator::Observer overrides: |
45 virtual void OnDisplayModeChanged() OVERRIDE; | 45 virtual void OnDisplayModeChanged() OVERRIDE; |
| 46 virtual void OnDisplayModeChangeFailed() OVERRIDE; |
46 | 47 |
47 private: | 48 private: |
48 // Clears all hiding layers. Note that in case that this method is called | 49 // Clears all hiding layers. Note that in case that this method is called |
49 // during an animation, the method call will cancel all of the animations | 50 // during an animation, the method call will cancel all of the animations |
50 // and *not* call the registered callback. | 51 // and *not* call the registered callback. |
51 void ClearHidingLayers(); | 52 void ClearHidingLayers(); |
52 | 53 |
53 std::map<aura::RootWindow*, ui::Layer*> hiding_layers_; | 54 std::map<aura::RootWindow*, ui::Layer*> hiding_layers_; |
54 scoped_ptr<base::OneShotTimer<OutputConfiguratorAnimation> > timer_; | 55 scoped_ptr<base::OneShotTimer<OutputConfiguratorAnimation> > timer_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(OutputConfiguratorAnimation); | 57 DISALLOW_COPY_AND_ASSIGN(OutputConfiguratorAnimation); |
57 }; | 58 }; |
58 | 59 |
59 } // namespace internal | 60 } // namespace internal |
60 } // namespace ash | 61 } // namespace ash |
61 | 62 |
62 #endif // ASH_DISPLAY_OUTPUT_CONFIGURATION_CONTROLLER_H_ | 63 #endif // ASH_DISPLAY_OUTPUT_CONFIGURATION_CONTROLLER_H_ |
OLD | NEW |