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

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

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698