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

Side by Side Diff: ash/wm/boot_splash_screen_chromeos.h

Issue 224113005: Eliminate ash::internal namespace (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_ 5 #ifndef ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_
6 #define ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_ 6 #define ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 13
14 namespace aura { 14 namespace aura {
15 class WindowTreeHost; 15 class WindowTreeHost;
16 } 16 }
17 17
18 namespace ui { 18 namespace ui {
19 class Layer; 19 class Layer;
20 class LayerDelegate; 20 class LayerDelegate;
21 } 21 }
22 22
23 namespace ash { 23 namespace ash {
24 namespace internal {
25 24
26 // BootSplashScreen manages a ui::Layer, stacked at the top of the root layer's 25 // BootSplashScreen manages a ui::Layer, stacked at the top of the root layer's
27 // children, that displays a copy of the initial contents of the host window. 26 // children, that displays a copy of the initial contents of the host window.
28 // This allows us to continue displaying the Chrome OS boot splash screen (which 27 // This allows us to continue displaying the Chrome OS boot splash screen (which
29 // is displayed before Ash starts) after the compositor has taken over so we can 28 // is displayed before Ash starts) after the compositor has taken over so we can
30 // animate the transition between the splash screen and the login screen. 29 // animate the transition between the splash screen and the login screen.
31 class BootSplashScreen { 30 class BootSplashScreen {
32 public: 31 public:
33 explicit BootSplashScreen(aura::WindowTreeHost* host); 32 explicit BootSplashScreen(aura::WindowTreeHost* host);
34 ~BootSplashScreen(); 33 ~BootSplashScreen();
35 34
36 // Begins animating |layer_|'s opacity to 0 over |duration|. 35 // Begins animating |layer_|'s opacity to 0 over |duration|.
37 void StartHideAnimation(base::TimeDelta duration); 36 void StartHideAnimation(base::TimeDelta duration);
38 37
39 private: 38 private:
40 class CopyHostContentLayerDelegate; 39 class CopyHostContentLayerDelegate;
41 40
42 // Copies the host window's content to |layer_|. 41 // Copies the host window's content to |layer_|.
43 scoped_ptr<CopyHostContentLayerDelegate> layer_delegate_; 42 scoped_ptr<CopyHostContentLayerDelegate> layer_delegate_;
44 43
45 scoped_ptr<ui::Layer> layer_; 44 scoped_ptr<ui::Layer> layer_;
46 45
47 DISALLOW_COPY_AND_ASSIGN(BootSplashScreen); 46 DISALLOW_COPY_AND_ASSIGN(BootSplashScreen);
48 }; 47 };
49 48
50 } // namespace internal
51 } // namespace ash 49 } // namespace ash
52 50
53 #endif // ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_ 51 #endif // ASH_WM_BOOT_SPLASH_SCREEN_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/wm/ash_native_cursor_manager_interactive_uitest.cc ('k') | ash/wm/boot_splash_screen_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698