Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: ash/system/tray/system_tray_item.cc

Issue 10383045: Add support to SystemTray for a second notification bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
11 namespace ash { 11 namespace ash {
12 12
13 SystemTrayItem::SystemTrayItem() { 13 SystemTrayItem::SystemTrayItem() {
14 } 14 }
15 15
16 SystemTrayItem::~SystemTrayItem() { 16 SystemTrayItem::~SystemTrayItem() {
17 } 17 }
18 18
19 views::View* SystemTrayItem::CreateTrayView(user::LoginStatus status) {
20 return NULL;
21 }
22
23 views::View* SystemTrayItem::CreateDefaultView(user::LoginStatus status) {
24 return NULL;
25 }
26
27 views::View* SystemTrayItem::CreateDetailedView(user::LoginStatus status) {
28 return NULL;
29 }
30
31 views::View* SystemTrayItem::CreateNotificationView(user::LoginStatus status) {
32 return NULL;
33 }
34
35 void SystemTrayItem::DestroyTrayView() {
36 }
37
38 void SystemTrayItem::DestroyDefaultView() {
39 }
40
41 void SystemTrayItem::DestroyDetailedView() {
42 }
43
44 void SystemTrayItem::DestroyNotificationView() {
45 }
46
19 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { 47 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) {
20 Shell::GetInstance()->tray()->ShowDetailedView(this, for_seconds, activate); 48 Shell::GetInstance()->tray()->ShowDetailedView(this, for_seconds, activate);
21 } 49 }
22 50
23 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { 51 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) {
24 Shell::GetInstance()->tray()->SetDetailedViewCloseDelay(for_seconds); 52 Shell::GetInstance()->tray()->SetDetailedViewCloseDelay(for_seconds);
25 } 53 }
26 54
55 void SystemTrayItem::ShowNotificationView() {
56 Shell::GetInstance()->tray()->ShowNotificationView(this);
57 }
58
59 void SystemTrayItem::HideNotificationView() {
60 Shell::GetInstance()->tray()->HideNotificationView(this);
61 }
62
27 } // namespace ash 63 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698