OLD | NEW |
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_FIRST_RUN_DESKTOP_CLEANER_ | 5 #ifndef ASH_FIRST_RUN_DESKTOP_CLEANER_ |
6 #define ASH_FIRST_RUN_DESKTOP_CLEANER_ | 6 #define ASH_FIRST_RUN_DESKTOP_CLEANER_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
| 16 class ContainerHider; |
| 17 class NotificationBlocker; |
16 | 18 |
17 namespace test { | 19 namespace test { |
18 class FirstRunHelperTest; | 20 class FirstRunHelperTest; |
19 } | 21 } |
20 | 22 |
21 namespace internal { | |
22 | |
23 class ContainerHider; | |
24 class NotificationBlocker; | |
25 | |
26 // Class used to "clean" ash desktop, i.e. hide all windows and notifications. | 23 // Class used to "clean" ash desktop, i.e. hide all windows and notifications. |
27 class ASH_EXPORT DesktopCleaner { | 24 class ASH_EXPORT DesktopCleaner { |
28 public: | 25 public: |
29 DesktopCleaner(); | 26 DesktopCleaner(); |
30 ~DesktopCleaner(); | 27 ~DesktopCleaner(); |
31 | 28 |
32 private: | 29 private: |
33 // Returns the list of containers that DesctopCleaner hides. | 30 // Returns the list of containers that DesctopCleaner hides. |
34 static std::vector<int> GetContainersToHideForTest(); | 31 static std::vector<int> GetContainersToHideForTest(); |
35 | 32 |
36 std::vector<linked_ptr<ContainerHider> > container_hiders_; | 33 std::vector<linked_ptr<ContainerHider> > container_hiders_; |
37 scoped_ptr<NotificationBlocker> notification_blocker_; | 34 scoped_ptr<NotificationBlocker> notification_blocker_; |
38 | 35 |
39 friend class ash::test::FirstRunHelperTest; | 36 friend class ash::test::FirstRunHelperTest; |
40 DISALLOW_COPY_AND_ASSIGN(DesktopCleaner); | 37 DISALLOW_COPY_AND_ASSIGN(DesktopCleaner); |
41 }; | 38 }; |
42 | 39 |
43 } // namespace internal | |
44 } // namespace ash | 40 } // namespace ash |
45 | 41 |
46 #endif // ASH_FIRST_RUN_DESKTOP_CLEANER_ | 42 #endif // ASH_FIRST_RUN_DESKTOP_CLEANER_ |
OLD | NEW |