| 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" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 13 #include "chromeos/display/output_configurator.h" | 13 #include "chromeos/display/output_configurator.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 class RootWindow; | 16 class RootWindow; |
| 17 class Window; | |
| 18 } // namespace aura | 17 } // namespace aura |
| 19 | 18 |
| 20 namespace ui { | 19 namespace ui { |
| 21 class Layer; | 20 class Layer; |
| 22 } // namespace ui | 21 } // namespace ui |
| 23 | 22 |
| 24 namespace ash { | 23 namespace ash { |
| 25 namespace internal { | 24 namespace internal { |
| 26 | 25 |
| 27 // OutputConfiguratorAnimation provides the visual effects for | 26 // OutputConfiguratorAnimation provides the visual effects for |
| (...skipping 20 matching lines...) Expand all Loading... |
| 48 OVERRIDE; | 47 OVERRIDE; |
| 49 virtual void OnDisplayModeChangeFailed( | 48 virtual void OnDisplayModeChangeFailed( |
| 50 chromeos::OutputState failed_new_state) OVERRIDE; | 49 chromeos::OutputState failed_new_state) OVERRIDE; |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 // Clears all hiding layers. Note that in case that this method is called | 52 // 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 | 53 // during an animation, the method call will cancel all of the animations |
| 55 // and *not* call the registered callback. | 54 // and *not* call the registered callback. |
| 56 void ClearHidingLayers(); | 55 void ClearHidingLayers(); |
| 57 | 56 |
| 58 std::map<aura::Window*, ui::Layer*> hiding_layers_; | 57 std::map<aura::RootWindow*, ui::Layer*> hiding_layers_; |
| 59 scoped_ptr<base::OneShotTimer<OutputConfiguratorAnimation> > timer_; | 58 scoped_ptr<base::OneShotTimer<OutputConfiguratorAnimation> > timer_; |
| 60 | 59 |
| 61 DISALLOW_COPY_AND_ASSIGN(OutputConfiguratorAnimation); | 60 DISALLOW_COPY_AND_ASSIGN(OutputConfiguratorAnimation); |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace internal | 63 } // namespace internal |
| 65 } // namespace ash | 64 } // namespace ash |
| 66 | 65 |
| 67 #endif // ASH_DISPLAY_OUTPUT_CONFIGURATION_CONTROLLER_H_ | 66 #endif // ASH_DISPLAY_OUTPUT_CONFIGURATION_CONTROLLER_H_ |
| OLD | NEW |