| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ash/system/tray/system_tray_item.h" | |
| 6 | |
| 7 #include "ash/common/system/tray/system_tray_delegate.h" | |
| 8 #include "ash/system/tray/system_tray.h" | |
| 9 #include "ui/views/view.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 | |
| 13 SystemTrayItem::SystemTrayItem(SystemTray* system_tray) | |
| 14 : system_tray_(system_tray), | |
| 15 restore_focus_(false) { | |
| 16 } | |
| 17 | |
| 18 SystemTrayItem::~SystemTrayItem() { | |
| 19 } | |
| 20 | |
| 21 views::View* SystemTrayItem::CreateTrayView(LoginStatus status) { | |
| 22 return NULL; | |
| 23 } | |
| 24 | |
| 25 views::View* SystemTrayItem::CreateDefaultView(LoginStatus status) { | |
| 26 return NULL; | |
| 27 } | |
| 28 | |
| 29 views::View* SystemTrayItem::CreateDetailedView(LoginStatus status) { | |
| 30 return NULL; | |
| 31 } | |
| 32 | |
| 33 views::View* SystemTrayItem::CreateNotificationView(LoginStatus status) { | |
| 34 return NULL; | |
| 35 } | |
| 36 | |
| 37 void SystemTrayItem::DestroyTrayView() { | |
| 38 } | |
| 39 | |
| 40 void SystemTrayItem::DestroyDefaultView() { | |
| 41 } | |
| 42 | |
| 43 void SystemTrayItem::DestroyDetailedView() { | |
| 44 } | |
| 45 | |
| 46 void SystemTrayItem::DestroyNotificationView() { | |
| 47 } | |
| 48 | |
| 49 void SystemTrayItem::TransitionDetailedView() { | |
| 50 system_tray()->ShowDetailedView(this, 0, true, BUBBLE_USE_EXISTING); | |
| 51 } | |
| 52 | |
| 53 void SystemTrayItem::UpdateAfterLoginStatusChange(LoginStatus status) {} | |
| 54 | |
| 55 void SystemTrayItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { | |
| 56 } | |
| 57 | |
| 58 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { | |
| 59 system_tray()->ShowDetailedView( | |
| 60 this, for_seconds, activate, BUBBLE_CREATE_NEW); | |
| 61 } | |
| 62 | |
| 63 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { | |
| 64 system_tray()->SetDetailedViewCloseDelay(for_seconds); | |
| 65 } | |
| 66 | |
| 67 void SystemTrayItem::HideDetailedView() { | |
| 68 system_tray()->HideDetailedView(this); | |
| 69 } | |
| 70 | |
| 71 void SystemTrayItem::ShowNotificationView() { | |
| 72 system_tray()->ShowNotificationView(this); | |
| 73 } | |
| 74 | |
| 75 void SystemTrayItem::HideNotificationView() { | |
| 76 system_tray()->HideNotificationView(this); | |
| 77 } | |
| 78 | |
| 79 bool SystemTrayItem::ShouldHideArrow() const { | |
| 80 return false; | |
| 81 } | |
| 82 | |
| 83 bool SystemTrayItem::ShouldShowShelf() const { | |
| 84 return true; | |
| 85 } | |
| 86 | |
| 87 } // namespace ash | |
| OLD | NEW |