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/tray_constants.h" | 9 #include "ash/system/tray/tray_constants.h" |
10 #include "ash/system/tray/tray_item_view.h" | 10 #include "ash/system/tray/tray_item_view.h" |
11 #include "ui/views/controls/label.h" | 11 #include "ui/views/controls/label.h" |
12 #include "ui/views/view.h" | 12 #include "ui/views/view.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 | 15 |
16 SystemTrayItem::SystemTrayItem() { | 16 SystemTrayItem::SystemTrayItem() { |
17 } | 17 } |
18 | 18 |
19 SystemTrayItem::~SystemTrayItem() { | 19 SystemTrayItem::~SystemTrayItem() { |
20 } | 20 } |
21 | 21 |
22 views::View* SystemTrayItem::CreateTrayView(user::LoginStatus status) { | 22 views::View* SystemTrayItem::CreateTrayView(user::LoginStatus status) { |
23 return NULL; | 23 return NULL; |
24 } | 24 } |
25 | 25 |
26 views::View* SystemTrayItem::CreateDefaultView(user::LoginStatus status) { | 26 views::View* SystemTrayItem::CreateDefaultView(user::LoginStatus status, |
| 27 int bubble_width) { |
27 return NULL; | 28 return NULL; |
28 } | 29 } |
29 | 30 |
30 views::View* SystemTrayItem::CreateDetailedView(user::LoginStatus status) { | 31 views::View* SystemTrayItem::CreateDetailedView(user::LoginStatus status) { |
31 return NULL; | 32 return NULL; |
32 } | 33 } |
33 | 34 |
34 views::View* SystemTrayItem::CreateNotificationView(user::LoginStatus status) { | 35 views::View* SystemTrayItem::CreateNotificationView(user::LoginStatus status) { |
35 return NULL; | 36 return NULL; |
36 } | 37 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 } | 77 } |
77 | 78 |
78 void SystemTrayItem::HideNotificationView() { | 79 void SystemTrayItem::HideNotificationView() { |
79 Shell::GetInstance()->system_tray()->HideNotificationView(this); | 80 Shell::GetInstance()->system_tray()->HideNotificationView(this); |
80 } | 81 } |
81 | 82 |
82 bool SystemTrayItem::ShouldShowLauncher() const { | 83 bool SystemTrayItem::ShouldShowLauncher() const { |
83 return true; | 84 return true; |
84 } | 85 } |
85 | 86 |
| 87 bool SystemTrayItem::GuaranteeDefaultViewPreferredSize( |
| 88 user::LoginStatus status) const { |
| 89 return false; |
| 90 } |
| 91 |
86 } // namespace ash | 92 } // namespace ash |
OLD | NEW |