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

Side by Side Diff: athena/system/public/system_ui.h

Issue 483033003: [Athena] Add status icons and system time to the centered home card (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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/system/background_controller.cc ('k') | athena/system/status_icon_container_view.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_SYSTEM_PUBLIC_SYSTEM_UI_H_ 5 #ifndef ATHENA_SYSTEM_PUBLIC_SYSTEM_UI_H_
6 #define ATHENA_SYSTEM_PUBLIC_SYSTEM_UI_H_ 6 #define ATHENA_SYSTEM_PUBLIC_SYSTEM_UI_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
11 namespace base { 11 namespace base {
12 class TaskRunner; 12 class TaskRunner;
13 } 13 }
14 14
15 namespace gfx { 15 namespace gfx {
16 class ImageSkia; 16 class ImageSkia;
17 } 17 }
18 18
19 namespace views { 19 namespace views {
20 class View; 20 class View;
21 } 21 }
22 22
23 namespace athena { 23 namespace athena {
24 24
25 class ATHENA_EXPORT SystemUI { 25 class ATHENA_EXPORT SystemUI {
26 public: 26 public:
27 enum ColorScheme {
28 COLOR_SCHEME_LIGHT,
29 COLOR_SCHEME_DARK
30 };
31
27 // Creates and deletes the singleton object of the SystemUI implementation. 32 // Creates and deletes the singleton object of the SystemUI implementation.
28 static SystemUI* Create(scoped_refptr<base::TaskRunner> io_task_runner); 33 static SystemUI* Create(scoped_refptr<base::TaskRunner> io_task_runner);
29 static SystemUI* Get(); 34 static SystemUI* Get();
30 static void Shutdown(); 35 static void Shutdown();
31 36
32 virtual ~SystemUI() {} 37 virtual ~SystemUI() {}
33 38
34 // Sets the background image. 39 // Sets the background image.
35 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; 40 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
36 41
37 // Creates a view which displays the time. 42 // Creates a view which displays the time, status icons, and debug
38 virtual views::View* CreateTimeView() = 0; 43 // information.
39 44 virtual views::View* CreateSystemInfoView(ColorScheme color_scheme) = 0;
40 // Creates a view which displays status icons and debug information.
41 virtual views::View* CreateStatusIconView() = 0;
42 }; 45 };
43 46
44 } // namespace athena 47 } // namespace athena
45 48
46 #endif // ATHENA_SYSTEM_PUBLIC_SYSTEM_UI_H_ 49 #endif // ATHENA_SYSTEM_PUBLIC_SYSTEM_UI_H_
OLDNEW
« no previous file with comments | « athena/system/background_controller.cc ('k') | athena/system/status_icon_container_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698