OLD | NEW |
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 aura { |
| 12 class Window; |
| 13 } |
| 14 |
11 namespace base { | 15 namespace base { |
12 class TaskRunner; | 16 class TaskRunner; |
13 } | 17 } |
14 | 18 |
| 19 namespace views { |
| 20 class View; |
| 21 } |
| 22 |
15 namespace athena { | 23 namespace athena { |
16 | 24 |
17 class ATHENA_EXPORT SystemUI { | 25 class ATHENA_EXPORT SystemUI { |
18 public: | 26 public: |
19 // Creates and deletes the singleton object of the SystemUI implementation. | 27 // Creates and deletes the singleton object of the SystemUI implementation. |
20 static SystemUI* Create(scoped_refptr<base::TaskRunner> io_task_runner); | 28 static SystemUI* Create(scoped_refptr<base::TaskRunner> io_task_runner); |
| 29 static SystemUI* Get(); |
21 static void Shutdown(); | 30 static void Shutdown(); |
22 | 31 |
23 virtual ~SystemUI() {} | 32 virtual ~SystemUI() {} |
| 33 |
| 34 // Creates a view which displays the time. |
| 35 virtual views::View* CreateTimeView() = 0; |
| 36 |
| 37 // Creates a view which displays status icons and debug information. |
| 38 // |popup_container| is the parent window to use for the "select network" |
| 39 // dialog. |
| 40 virtual views::View* CreateStatusIconView(aura::Window* popup_container) = 0; |
24 }; | 41 }; |
25 | 42 |
26 } // namespace athena | 43 } // namespace athena |
27 | 44 |
28 #endif // ATHENA_SYSTEM_PUBLIC_SYSTEM_UI_H_ | 45 #endif // ATHENA_SYSTEM_PUBLIC_SYSTEM_UI_H_ |
OLD | NEW |