OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tray/system_tray_item.h" | 5 #include "ash/system/tray/system_tray_item.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 void SystemTrayItem::DestroyNotificationView() { | 44 void SystemTrayItem::DestroyNotificationView() { |
45 } | 45 } |
46 | 46 |
47 void SystemTrayItem::TransitionDetailedView() { | 47 void SystemTrayItem::TransitionDetailedView() { |
48 Shell::GetInstance()->tray()->ShowDetailedView(this, 0, true, | 48 Shell::GetInstance()->tray()->ShowDetailedView(this, 0, true, |
49 BUBBLE_USE_EXISTING); | 49 BUBBLE_USE_EXISTING); |
50 } | 50 } |
51 | 51 |
| 52 void SystemTrayItem::UpdateAfterLoginStatusChange(user::LoginStatus status) { |
| 53 } |
| 54 |
52 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { | 55 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { |
53 Shell::GetInstance()->tray()->ShowDetailedView(this, for_seconds, activate, | 56 Shell::GetInstance()->tray()->ShowDetailedView(this, for_seconds, activate, |
54 BUBBLE_CREATE_NEW); | 57 BUBBLE_CREATE_NEW); |
55 } | 58 } |
56 | 59 |
57 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { | 60 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { |
58 Shell::GetInstance()->tray()->SetDetailedViewCloseDelay(for_seconds); | 61 Shell::GetInstance()->tray()->SetDetailedViewCloseDelay(for_seconds); |
59 } | 62 } |
60 | 63 |
| 64 void SystemTrayItem::HideDetailedView() { |
| 65 Shell::GetInstance()->tray()->HideDetailedView(this); |
| 66 } |
| 67 |
61 void SystemTrayItem::ShowNotificationView() { | 68 void SystemTrayItem::ShowNotificationView() { |
62 Shell::GetInstance()->tray()->ShowNotificationView(this); | 69 Shell::GetInstance()->tray()->ShowNotificationView(this); |
63 } | 70 } |
64 | 71 |
65 void SystemTrayItem::HideNotificationView() { | 72 void SystemTrayItem::HideNotificationView() { |
66 Shell::GetInstance()->tray()->HideNotificationView(this); | 73 Shell::GetInstance()->tray()->HideNotificationView(this); |
67 } | 74 } |
68 | 75 |
69 } // namespace ash | 76 } // namespace ash |
OLD | NEW |