Home | History | Annotate | Download | only in first_run
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef ASH_FIRST_RUN_DESKTOP_CLEANER_
      6 #define ASH_FIRST_RUN_DESKTOP_CLEANER_
      7 
      8 #include <vector>
      9 
     10 #include "ash/ash_export.h"
     11 #include "base/basictypes.h"
     12 #include "base/memory/linked_ptr.h"
     13 #include "base/memory/scoped_ptr.h"
     14 
     15 namespace ash {
     16 
     17 namespace test {
     18 class FirstRunHelperTest;
     19 }
     20 
     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.
     27 class ASH_EXPORT DesktopCleaner {
     28  public:
     29   DesktopCleaner();
     30   ~DesktopCleaner();
     31 
     32  private:
     33   // Returns the list of containers that DesctopCleaner hides.
     34   static std::vector<int> GetContainersToHideForTest();
     35 
     36   std::vector<linked_ptr<ContainerHider> > container_hiders_;
     37   scoped_ptr<NotificationBlocker> notification_blocker_;
     38 
     39   friend class ash::test::FirstRunHelperTest;
     40   DISALLOW_COPY_AND_ASSIGN(DesktopCleaner);
     41 };
     42 
     43 }  // namespace internal
     44 }  // namespace ash
     45 
     46 #endif  // ASH_FIRST_RUN_DESKTOP_CLEANER_
     47