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 "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 void SystemTrayItem::DestroyNotificationView() { | 47 void SystemTrayItem::DestroyNotificationView() { |
48 } | 48 } |
49 | 49 |
50 void SystemTrayItem::TransitionDetailedView() { | 50 void SystemTrayItem::TransitionDetailedView() { |
51 system_tray()->ShowDetailedView(this, 0, true, BUBBLE_USE_EXISTING); | 51 system_tray()->ShowDetailedView(this, 0, true, BUBBLE_USE_EXISTING); |
52 } | 52 } |
53 | 53 |
54 void SystemTrayItem::UpdateAfterLoginStatusChange(user::LoginStatus status) { | 54 void SystemTrayItem::UpdateAfterLoginStatusChange(user::LoginStatus status) { |
55 } | 55 } |
56 | 56 |
57 void SystemTrayItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { | 57 void SystemTrayItem::UpdateAfterShelfAlignmentChange( |
58 } | 58 wm::ShelfAlignment alignment) {} |
59 | 59 |
60 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { | 60 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { |
61 system_tray()->ShowDetailedView( | 61 system_tray()->ShowDetailedView( |
62 this, for_seconds, activate, BUBBLE_CREATE_NEW); | 62 this, for_seconds, activate, BUBBLE_CREATE_NEW); |
63 } | 63 } |
64 | 64 |
65 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { | 65 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { |
66 system_tray()->SetDetailedViewCloseDelay(for_seconds); | 66 system_tray()->SetDetailedViewCloseDelay(for_seconds); |
67 } | 67 } |
68 | 68 |
(...skipping 11 matching lines...) Expand all Loading... |
80 | 80 |
81 bool SystemTrayItem::ShouldHideArrow() const { | 81 bool SystemTrayItem::ShouldHideArrow() const { |
82 return false; | 82 return false; |
83 } | 83 } |
84 | 84 |
85 bool SystemTrayItem::ShouldShowShelf() const { | 85 bool SystemTrayItem::ShouldShowShelf() const { |
86 return true; | 86 return true; |
87 } | 87 } |
88 | 88 |
89 } // namespace ash | 89 } // namespace ash |
OLD | NEW |