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