blob: db12b1b7f56d4e20d7a91142a6e6382a824baf38 [file] [log] [blame]
// Copyright 2013 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.
#include <memory>
#include <string>
#include "base/macros.h"
#include "base/time/time.h"
namespace aura {
class WindowTreeHost;
namespace ui {
class Layer;
class LayerDelegate;
namespace ash {
// BootSplashScreen manages a ui::Layer, stacked at the top of the root layer's
// children, that displays a copy of the initial contents of the host window.
// This allows us to continue displaying the Chrome OS boot splash screen (which
// is displayed before Ash starts) after the compositor has taken over so we can
// animate the transition between the splash screen and the login screen.
class BootSplashScreen {
explicit BootSplashScreen(aura::WindowTreeHost* host);
// Begins animating |layer_|'s opacity to 0 over |duration|.
void StartHideAnimation(base::TimeDelta duration);
class CopyHostContentLayerDelegate;
// Copies the host window's content to |layer_|.
std::unique_ptr<CopyHostContentLayerDelegate> layer_delegate_;
std::unique_ptr<ui::Layer> layer_;
} // namespace ash