Searched refs:TrayPower (Results 1 – 4 of 4) sorted by relevance
53 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 …]
80 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::TrayPower119 TrayPower::~TrayPower() { in ~TrayPower()123 views::View* TrayPower::CreateTrayView(user::LoginStatus status) { in CreateTrayView()[all …]
30 class ASH_EXPORT TrayPower : public SystemTrayItem,54 TrayPower(SystemTray* system_tray,56 virtual ~TrayPower();111 DISALLOW_COPY_AND_ASSIGN(TrayPower);
189 new internal::TrayPower(this, message_center::MessageCenter::Get())); in CreateItems()