Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: ash/common/system/toast/toast_manager.h

Issue 2139183003: mash: Migrate //ash/system/toast to WM common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move test back Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/system/toast/toast_data.cc ('k') | ash/common/system/toast/toast_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_COMMON_SYSTEM_TOAST_TOAST_MANAGER_H_
6 #define ASH_SYSTEM_TOAST_TOAST_MANAGER_H_ 6 #define ASH_COMMON_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/common/shell_observer.h" 13 #include "ash/common/system/toast/toast_data.h"
14 #include "ash/system/toast/toast_data.h" 14 #include "ash/common/system/toast/toast_overlay.h"
15 #include "ash/system/toast/toast_overlay.h"
16 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
17 #include "base/threading/thread_checker.h"
18 16
19 namespace ash { 17 namespace ash {
20 18
21 // Class managing toast requests. 19 // Class managing toast requests.
22 class ASH_EXPORT ToastManager : public ToastOverlay::Delegate { 20 class ASH_EXPORT ToastManager : public ToastOverlay::Delegate {
23 public: 21 public:
24 ToastManager(); 22 ToastManager();
25 ~ToastManager() override; 23 ~ToastManager() override;
26 24
27 // Show a toast. If there are queued toasts, succeeding toasts are queued as 25 // Show a toast. If there are queued toasts, succeeding toasts are queued as
(...skipping 22 matching lines...) Expand all
50 std::deque<ToastData> queue_; 48 std::deque<ToastData> queue_;
51 std::unique_ptr<ToastOverlay> overlay_; 49 std::unique_ptr<ToastOverlay> overlay_;
52 50
53 base::WeakPtrFactory<ToastManager> weak_ptr_factory_; 51 base::WeakPtrFactory<ToastManager> weak_ptr_factory_;
54 52
55 DISALLOW_COPY_AND_ASSIGN(ToastManager); 53 DISALLOW_COPY_AND_ASSIGN(ToastManager);
56 }; 54 };
57 55
58 } // namespace ash 56 } // namespace ash
59 57
60 #endif // ASH_SYSTEM_TOAST_TOAST_MANAGER_H_ 58 #endif // ASH_COMMON_SYSTEM_TOAST_TOAST_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/common/system/toast/toast_data.cc ('k') | ash/common/system/toast/toast_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698