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

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

Issue 10332152: Add TraySms for SMS messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bubble sizing code 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
« no previous file with comments | « ash/system/tray/system_tray_item.h ('k') | ash/system/tray/tray_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 void SystemTrayItem::DestroyNotificationView() { 44 void SystemTrayItem::DestroyNotificationView() {
45 } 45 }
46 46
47 void SystemTrayItem::TransitionDetailedView() { 47 void SystemTrayItem::TransitionDetailedView() {
48 Shell::GetInstance()->tray()->ShowDetailedView(this, 0, true, 48 Shell::GetInstance()->tray()->ShowDetailedView(this, 0, true,
49 BUBBLE_USE_EXISTING); 49 BUBBLE_USE_EXISTING);
50 } 50 }
51 51
52 void SystemTrayItem::UpdateAfterLoginStatusChange(user::LoginStatus status) {
53 }
54
52 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) { 55 void SystemTrayItem::PopupDetailedView(int for_seconds, bool activate) {
53 Shell::GetInstance()->tray()->ShowDetailedView(this, for_seconds, activate, 56 Shell::GetInstance()->tray()->ShowDetailedView(this, for_seconds, activate,
54 BUBBLE_CREATE_NEW); 57 BUBBLE_CREATE_NEW);
55 } 58 }
56 59
57 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) { 60 void SystemTrayItem::SetDetailedViewCloseDelay(int for_seconds) {
58 Shell::GetInstance()->tray()->SetDetailedViewCloseDelay(for_seconds); 61 Shell::GetInstance()->tray()->SetDetailedViewCloseDelay(for_seconds);
59 } 62 }
60 63
64 void SystemTrayItem::HideDetailedView() {
65 Shell::GetInstance()->tray()->HideDetailedView(this);
66 }
67
61 void SystemTrayItem::ShowNotificationView() { 68 void SystemTrayItem::ShowNotificationView() {
62 Shell::GetInstance()->tray()->ShowNotificationView(this); 69 Shell::GetInstance()->tray()->ShowNotificationView(this);
63 } 70 }
64 71
65 void SystemTrayItem::HideNotificationView() { 72 void SystemTrayItem::HideNotificationView() {
66 Shell::GetInstance()->tray()->HideNotificationView(this); 73 Shell::GetInstance()->tray()->HideNotificationView(this);
67 } 74 }
68 75
69 } // namespace ash 76 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_item.h ('k') | ash/system/tray/tray_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698