Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2445)

Unified Diff: ash/display/output_configurator_animation.h

Issue 250163002: Update naming from OutputConfiguratorAnimation to DisplayConfiguratorAnimation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/display/display_manager.cc ('k') | ash/display/output_configurator_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/output_configurator_animation.h
diff --git a/ash/display/output_configurator_animation.h b/ash/display/output_configurator_animation.h
deleted file mode 100644
index e82217aaecbf4fb474ce657587ffaaff1db893c7..0000000000000000000000000000000000000000
--- a/ash/display/output_configurator_animation.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// 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 "ash/ash_export.h"
-#include "base/callback.h"
-#include "base/timer/timer.h"
-#include "ui/display/chromeos/display_configurator.h"
-
-namespace aura {
-class RootWindow;
-class Window;
-} // namespace aura
-
-namespace ui {
-class Layer;
-} // namespace ui
-
-namespace ash {
-
-// OutputConfiguratorAnimation provides the visual effects for
-// ui::DisplayConfigurator, such like fade-out/in during changing
-// the display mode.
-class ASH_EXPORT OutputConfiguratorAnimation
- : public ui::DisplayConfigurator::Observer {
- public:
- OutputConfiguratorAnimation();
- virtual ~OutputConfiguratorAnimation();
-
- // Starts the fade-out animation for the all root windows. It will
- // call |callback| once all of the animations have finished.
- void StartFadeOutAnimation(base::Closure callback);
-
- // Starts the animation to clear the fade-out animation effect
- // for the all root windows.
- void StartFadeInAnimation();
-
- protected:
- // ui::DisplayConfigurator::Observer overrides:
- virtual void OnDisplayModeChanged(
- const ui::DisplayConfigurator::DisplayStateList& outputs) OVERRIDE;
- virtual void OnDisplayModeChangeFailed(
- ui::MultipleDisplayState failed_new_state) OVERRIDE;
-
- private:
- // Clears all hiding layers. Note that in case that this method is called
- // during an animation, the method call will cancel all of the animations
- // and *not* call the registered callback.
- void ClearHidingLayers();
-
- std::map<aura::Window*, ui::Layer*> hiding_layers_;
- scoped_ptr<base::OneShotTimer<OutputConfiguratorAnimation> > timer_;
-
- DISALLOW_COPY_AND_ASSIGN(OutputConfiguratorAnimation);
-};
-
-} // namespace ash
-
-#endif // ASH_DISPLAY_OUTPUT_CONFIGURATION_CONTROLLER_H_
« no previous file with comments | « ash/display/display_manager.cc ('k') | ash/display/output_configurator_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698