Home
last modified time | relevance | path

Searched refs:TrayPower (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/ash/system/chromeos/power/
Dtray_power_unittest.cc53 TrayPower* tray_power() { return tray_power_.get(); } in tray_power()
59 tray_power_.reset(new TrayPower(NULL, message_center_.get())); in SetUp()
68 TrayPower::NotificationState notification_state() const { in notification_state()
102 scoped_ptr<TrayPower> tray_power_;
147 EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); in TEST_F()
153 EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); in TEST_F()
162 EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); in TEST_F()
167 low.set_battery_time_to_empty_sec(TrayPower::kLowPowerMinutes * 60 + 30); in TEST_F()
169 EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); in TEST_F()
173 low.set_battery_time_to_empty_sec(TrayPower::kLowPowerMinutes * 60 + 29); in TEST_F()
[all …]
Dtray_power.cc80 explicit PowerNotificationView(TrayPower* owner) in PowerNotificationView()
101 const int TrayPower::kCriticalMinutes = 5;
102 const int TrayPower::kLowPowerMinutes = 15;
103 const int TrayPower::kNoWarningMinutes = 30;
104 const int TrayPower::kCriticalPercentage = 5;
105 const int TrayPower::kLowPowerPercentage = 10;
106 const int TrayPower::kNoWarningPercentage = 15;
108 TrayPower::TrayPower(SystemTray* system_tray, MessageCenter* message_center) in TrayPower() function in ash::internal::TrayPower
119 TrayPower::~TrayPower() { in ~TrayPower()
123 views::View* TrayPower::CreateTrayView(user::LoginStatus status) { in CreateTrayView()
[all …]
Dtray_power.h30 class ASH_EXPORT TrayPower : public SystemTrayItem,
54 TrayPower(SystemTray* system_tray,
56 virtual ~TrayPower();
111 DISALLOW_COPY_AND_ASSIGN(TrayPower);
/external/chromium_org/ash/system/tray/
Dsystem_tray.cc189 new internal::TrayPower(this, message_center::MessageCenter::Get())); in CreateItems()