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

Side by Side Diff: athena/screen/public/screen_manager.h

Issue 451753002: Add fade to white animation when power button is pressed on Athena (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « athena/screen/public/screen_animator.h ('k') | athena/screen/screen_animator_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "athena/athena_export.h" 10 #include "athena/athena_export.h"
11 #include "base/memory/scoped_ptr.h"
11 12
12 namespace aura { 13 namespace aura {
13 class Window; 14 class Window;
14 } 15 }
15 16
16 namespace gfx { 17 namespace gfx {
17 class ImageSkia; 18 class ImageSkia;
18 } 19 }
19 20
20 namespace wm { 21 namespace wm {
21 class FocusRules; 22 class FocusRules;
22 } 23 }
23 24
24 namespace athena { 25 namespace athena {
26 class ScreenAnimator;
25 27
26 // Mananges basic UI components on the screen such as background, and provide 28 // Mananges basic UI components on the screen such as background, and provide
27 // API for other UI components, such as window manager, home card, to 29 // API for other UI components, such as window manager, home card, to
28 // create and manage their windows on the screen. 30 // create and manage their windows on the screen.
29 class ATHENA_EXPORT ScreenManager { 31 class ATHENA_EXPORT ScreenManager {
30 public: 32 public:
31 struct ContainerParams { 33 struct ContainerParams {
32 ContainerParams(const std::string& name, int z_order_priority); 34 ContainerParams(const std::string& name, int z_order_priority);
33 std::string name; 35 std::string name;
34 36
(...skipping 22 matching lines...) Expand all
57 59
58 // Creates the container window on the screen. 60 // Creates the container window on the screen.
59 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; 61 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0;
60 62
61 // Return the context object to be used for widget creation. 63 // Return the context object to be used for widget creation.
62 virtual aura::Window* GetContext() = 0; 64 virtual aura::Window* GetContext() = 0;
63 65
64 // Sets the background image. 66 // Sets the background image.
65 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; 67 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
66 68
69 // Creates a ScreenAnimator.
70 virtual scoped_ptr<ScreenAnimator> CreateScreenAnimator() = 0;
oshima 2014/08/08 14:56:59 Sorry if I wasn't clear. I meant ui::LayerAnimato
71
67 // Create a focus rules. 72 // Create a focus rules.
68 // TODO(oshima): Make this virtual function. 73 // TODO(oshima): Make this virtual function.
69 static wm::FocusRules* CreateFocusRules(); 74 static wm::FocusRules* CreateFocusRules();
70 }; 75 };
71 76
72 } // namespace athena 77 } // namespace athena
73 78
74 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 79 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
OLDNEW
« no previous file with comments | « athena/screen/public/screen_animator.h ('k') | athena/screen/screen_animator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698