blob: 7c7fec84258f39f7fabd595529be643330d08acb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/tray/system_tray_item.h"
#include "ash/shell.h"
#include "ash/system/tray/system_tray.h"
#include "ui/views/view.h"
namespace ash {
SystemTrayItem::SystemTrayItem() {
}
SystemTrayItem::~SystemTrayItem() {
}
views::View* SystemTrayItem::CreateTrayView(user::LoginStatus status) {
return NULL;
}
views::View* SystemTrayItem::CreateDefaultView(user::LoginStatus status) {
return NULL;
}
views::View* SystemTrayItem::CreateDetailedView(user::LoginStatus status) {
return NULL;
}
views::View* SystemTrayItem::CreateNotificationView(user::LoginStatus status) {
return NULL;
}
void SystemTrayItem::DestroyTrayView() {
}
void SystemTrayItem::DestroyDefaultView() {
}
void SystemTrayItem::DestroyDetailedView() {
}
void SystemTrayItem::DestroyNotificationView() {
}
void SystemTrayItem::TransitionDetailedView() {
Shell::GetInstance()->system_tray()->ShowDetailedView(this, 0, true,
BUBBLE_USE_EXISTING);
}
void SystemTrayItem::UpdateAfterLoginStatusChange(user::LoginStatus status) {
}
void SystemTrayItem::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
}
void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) {
Shell::GetInstance()->system_tray()->ShowDetailedView(
this, for_seconds, activate, BUBBLE_CREATE_NEW);
}
void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) {
Shell::GetInstance()->system_tray()->SetDetailedViewCloseDelay(for_seconds);
}
void SystemTrayItem::HideDetailedView() {
Shell::GetInstance()->system_tray()->HideDetailedView(this);
}
void SystemTrayItem::ShowNotificationView() {
Shell::GetInstance()->system_tray()->ShowNotificationView(this);
}
void SystemTrayItem::HideNotificationView() {
Shell::GetInstance()->system_tray()->HideNotificationView(this);
}
} // namespace ash
|