1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_
6 #define ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "base/time/time.h"
25 // BootSplashScreen manages a ui::Layer, stacked at the top of the root layer's
26 // children, that displays a copy of the initial contents of the host window.
27 // This allows us to continue displaying the Chrome OS boot splash screen (which
28 // is displayed before Ash starts) after the compositor has taken over so we can
29 // animate the transition between the splash screen and the login screen.
30 class BootSplashScreen
{
32 explicit BootSplashScreen(aura::WindowTreeHost
* host
);
35 // Begins animating |layer_|'s opacity to 0 over |duration|.
36 void StartHideAnimation(base::TimeDelta duration
);
39 class CopyHostContentLayerDelegate
;
41 // Copies the host window's content to |layer_|.
42 scoped_ptr
<CopyHostContentLayerDelegate
> layer_delegate_
;
44 scoped_ptr
<ui::Layer
> layer_
;
46 DISALLOW_COPY_AND_ASSIGN(BootSplashScreen
);
51 #endif // ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_