OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SYSTEM_TOAST_TOAST_MANAGER_H_ | 5 #ifndef ASH_SYSTEM_TOAST_TOAST_MANAGER_H_ |
6 #define ASH_SYSTEM_TOAST_TOAST_MANAGER_H_ | 6 #define ASH_SYSTEM_TOAST_TOAST_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
13 #include "ash/shell_observer.h" | 13 #include "ash/common/shell_observer.h" |
14 #include "ash/system/toast/toast_data.h" | 14 #include "ash/system/toast/toast_data.h" |
15 #include "ash/system/toast/toast_overlay.h" | 15 #include "ash/system/toast/toast_overlay.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 | 18 |
19 namespace ash { | 19 namespace ash { |
20 | 20 |
21 // Class managing toast requests. | 21 // Class managing toast requests. |
22 class ASH_EXPORT ToastManager : public ToastOverlay::Delegate { | 22 class ASH_EXPORT ToastManager : public ToastOverlay::Delegate { |
23 public: | 23 public: |
(...skipping 27 matching lines...) Expand all Loading... |
51 std::unique_ptr<ToastOverlay> overlay_; | 51 std::unique_ptr<ToastOverlay> overlay_; |
52 | 52 |
53 base::WeakPtrFactory<ToastManager> weak_ptr_factory_; | 53 base::WeakPtrFactory<ToastManager> weak_ptr_factory_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(ToastManager); | 55 DISALLOW_COPY_AND_ASSIGN(ToastManager); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace ash | 58 } // namespace ash |
59 | 59 |
60 #endif // ASH_SYSTEM_TOAST_TOAST_MANAGER_H_ | 60 #endif // ASH_SYSTEM_TOAST_TOAST_MANAGER_H_ |
OLD | NEW |