TrayPower 134 ash/system/chromeos/power/tray_power.cc explicit PowerNotificationView(TrayPower* owner) TrayPower 155 ash/system/chromeos/power/tray_power.cc const int TrayPower::kCriticalMinutes = 5; TrayPower 156 ash/system/chromeos/power/tray_power.cc const int TrayPower::kLowPowerMinutes = 15; TrayPower 157 ash/system/chromeos/power/tray_power.cc const int TrayPower::kNoWarningMinutes = 30; TrayPower 158 ash/system/chromeos/power/tray_power.cc const int TrayPower::kCriticalPercentage = 5; TrayPower 159 ash/system/chromeos/power/tray_power.cc const int TrayPower::kLowPowerPercentage = 10; TrayPower 160 ash/system/chromeos/power/tray_power.cc const int TrayPower::kNoWarningPercentage = 15; TrayPower 162 ash/system/chromeos/power/tray_power.cc TrayPower::TrayPower(SystemTray* system_tray, MessageCenter* message_center) TrayPower 173 ash/system/chromeos/power/tray_power.cc TrayPower::~TrayPower() { TrayPower 177 ash/system/chromeos/power/tray_power.cc views::View* TrayPower::CreateTrayView(user::LoginStatus status) { TrayPower 187 ash/system/chromeos/power/tray_power.cc views::View* TrayPower::CreateDefaultView(user::LoginStatus status) { TrayPower 193 ash/system/chromeos/power/tray_power.cc views::View* TrayPower::CreateNotificationView(user::LoginStatus status) { TrayPower 204 ash/system/chromeos/power/tray_power.cc void TrayPower::DestroyTrayView() { TrayPower 208 ash/system/chromeos/power/tray_power.cc void TrayPower::DestroyDefaultView() { TrayPower 211 ash/system/chromeos/power/tray_power.cc void TrayPower::DestroyNotificationView() { TrayPower 215 ash/system/chromeos/power/tray_power.cc void TrayPower::UpdateAfterLoginStatusChange(user::LoginStatus status) { TrayPower 218 ash/system/chromeos/power/tray_power.cc void TrayPower::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) { TrayPower 222 ash/system/chromeos/power/tray_power.cc void TrayPower::OnPowerStatusChanged() { TrayPower 254 ash/system/chromeos/power/tray_power.cc bool TrayPower::MaybeShowUsbChargerNotification() { TrayPower 287 ash/system/chromeos/power/tray_power.cc bool TrayPower::UpdateNotificationState() { TrayPower 302 ash/system/chromeos/power/tray_power.cc bool TrayPower::UpdateNotificationStateForRemainingTime() { TrayPower 338 ash/system/chromeos/power/tray_power.cc bool TrayPower::UpdateNotificationStateForRemainingPercentage() { TrayPower 374 ash/system/chromeos/power/tray_power.cc void TrayPower::RecordChargerType() { TrayPower 28 ash/system/chromeos/power/tray_power.h class ASH_EXPORT TrayPower : public SystemTrayItem, TrayPower 52 ash/system/chromeos/power/tray_power.h TrayPower(SystemTray* system_tray, TrayPower 54 ash/system/chromeos/power/tray_power.h virtual ~TrayPower(); TrayPower 109 ash/system/chromeos/power/tray_power.h DISALLOW_COPY_AND_ASSIGN(TrayPower); TrayPower 52 ash/system/chromeos/power/tray_power_unittest.cc TrayPower* tray_power() { return tray_power_.get(); } TrayPower 58 ash/system/chromeos/power/tray_power_unittest.cc tray_power_.reset(new TrayPower(NULL, message_center_.get())); TrayPower 67 ash/system/chromeos/power/tray_power_unittest.cc TrayPower::NotificationState notification_state() const { TrayPower 101 ash/system/chromeos/power/tray_power_unittest.cc scoped_ptr<TrayPower> tray_power_; TrayPower 146 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 152 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 161 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 166 ash/system/chromeos/power/tray_power_unittest.cc low.set_battery_time_to_empty_sec(TrayPower::kLowPowerMinutes * 60 + 30); TrayPower 168 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 172 ash/system/chromeos/power/tray_power_unittest.cc low.set_battery_time_to_empty_sec(TrayPower::kLowPowerMinutes * 60 + 29); TrayPower 174 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_LOW_POWER, notification_state()); TrayPower 177 ash/system/chromeos/power/tray_power_unittest.cc low.set_battery_time_to_empty_sec(TrayPower::kLowPowerMinutes * 60 - 20); TrayPower 179 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_LOW_POWER, notification_state()); TrayPower 184 ash/system/chromeos/power/tray_power_unittest.cc critical.set_battery_time_to_empty_sec(TrayPower::kCriticalMinutes * 60 + 29); TrayPower 186 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_CRITICAL, notification_state()); TrayPower 191 ash/system/chromeos/power/tray_power_unittest.cc safe.set_battery_time_to_empty_sec(TrayPower::kNoWarningMinutes * 60 - 29); TrayPower 193 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 199 ash/system/chromeos/power/tray_power_unittest.cc low_usb.set_battery_percent(TrayPower::kLowPowerPercentage + 0.5); TrayPower 201 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 203 ash/system/chromeos/power/tray_power_unittest.cc low_usb.set_battery_percent(TrayPower::kLowPowerPercentage + 0.49); TrayPower 205 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_LOW_POWER, notification_state()); TrayPower 210 ash/system/chromeos/power/tray_power_unittest.cc critical_usb.set_battery_percent(TrayPower::kCriticalPercentage + 0.2); TrayPower 212 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_CRITICAL, notification_state()); TrayPower 217 ash/system/chromeos/power/tray_power_unittest.cc safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1); TrayPower 219 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 231 ash/system/chromeos/power/tray_power_unittest.cc EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state()); TrayPower 183 ash/system/tray/system_tray.cc AddTrayItem(new TrayPower(this, message_center::MessageCenter::Get()));