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 #include "ash/system/toast/toast_manager.h" | 5 #include "ash/system/toast/toast_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // Minimum duration for a toast to be visible (in millisecond). | 15 // Minimum duration for a toast to be visible (in millisecond). |
16 uint64_t kMinimumDurationMs = 200; | 16 uint64_t kMinimumDurationMs = 200; |
17 | 17 |
18 } // anonymous namespace | 18 } // anonymous namespace |
19 | 19 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 queue_.pop(); | 55 queue_.pop(); |
56 } | 56 } |
57 | 57 |
58 void ToastManager::OnDurationPassed(int toast_id) { | 58 void ToastManager::OnDurationPassed(int toast_id) { |
59 if (overlay_ && toast_id_ == toast_id) | 59 if (overlay_ && toast_id_ == toast_id) |
60 overlay_->Show(false); | 60 overlay_->Show(false); |
61 } | 61 } |
62 | 62 |
63 } // namespace ash | 63 } // namespace ash |
OLD | NEW |