Chromium Code Reviews| Index: ash/display/output_configurator_animation.h |
| diff --git a/ash/display/output_configurator_animation.h b/ash/display/output_configurator_animation.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..78132117ddc0f1ba3b77f7c178fb0fc4a1207389 |
| --- /dev/null |
| +++ b/ash/display/output_configurator_animation.h |
| @@ -0,0 +1,50 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_DISPLAY_OUTPUT_CONFIGURATOR_ANIMATION_H_ |
| +#define ASH_DISPLAY_OUTPUT_CONFIGURATOR_ANIMATION_H_ |
| + |
| +#include <map> |
| + |
| +#include "base/callback.h" |
| +#include "chromeos/display/output_configurator.h" |
| + |
| +namespace aura { |
| +class RootWindow; |
| +} // namespace aura |
| + |
| +namespace ui { |
| +class Layer; |
| +} |
|
oshima
2012/07/26 05:27:49
// namespace ui
(or you can remove "// namespace
Jun Mukai
2012/07/26 09:44:03
Done.
|
| + |
| +namespace ash { |
| +namespace internal { |
| + |
| +// OutputConfiguratorAnimation provides the visual effects for |
| +// chromeos::OutputConfigurator, such like fade-out/in during changing |
| +// the display mode. |
| +class OutputConfiguratorAnimation |
| + : public chromeos::OutputConfigurator::AnimationDelegate { |
| + public: |
| + OutputConfiguratorAnimation(); |
| + virtual ~OutputConfiguratorAnimation(); |
| + |
| + protected: |
| + // chromeos::OutputConfigurator::AnimationDelegate overrides: |
| + virtual void WillDisplayModeChange(base::Closure callback) OVERRIDE; |
| + virtual void OnDisplayModeChanged() OVERRIDE; |
| + |
| + private: |
| + // Clears all hiding layers. |
| + void ClearHidingLayers(); |
| + |
| + std::map<aura::RootWindow*, ui::Layer*> hiding_layers_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(OutputConfiguratorAnimation); |
| +}; |
| + |
| +} // namespace internal |
| +} // namespace ash |
| + |
| +#endif // ASH_DISPLAY_OUTPUT_CONFIGURATION_CONTROLLER_H_ |