| Index: ash/system/chromeos/power/tray_power.h
|
| ===================================================================
|
| --- ash/system/chromeos/power/tray_power.h (revision 240512)
|
| +++ ash/system/chromeos/power/tray_power.h (working copy)
|
| @@ -58,6 +58,17 @@
|
| private:
|
| friend class TrayPowerTest;
|
|
|
| + // This enum is used for histogram. The existing values should not be removed,
|
| + // and the new values should be added just before CHARGER_TYPE_COUNT.
|
| + enum ChargerType{
|
| + UNKNOWN_CHARGER,
|
| + MAINS_CHARGER,
|
| + USB_CHARGER,
|
| + UNCONFIRMED_SPRING_CHARGER,
|
| + SAFE_SPRING_CHARGER,
|
| + CHARGER_TYPE_COUNT,
|
| + };
|
| +
|
| // Overridden from SystemTrayItem.
|
| virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
|
| virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
|
| @@ -82,6 +93,9 @@
|
| bool UpdateNotificationStateForRemainingTime();
|
| bool UpdateNotificationStateForRemainingPercentage();
|
|
|
| + // Records the charger type in UMA.
|
| + void RecordChargerType();
|
| +
|
| message_center::MessageCenter* message_center_; // Not owned.
|
| tray::PowerTrayView* power_tray_;
|
| tray::PowerNotificationView* notification_view_;
|
| @@ -91,6 +105,9 @@
|
| // called?
|
| bool usb_charger_was_connected_;
|
|
|
| + // Was line power connected the last time onPowerStatusChanged() was called?
|
| + bool line_power_was_connected_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TrayPower);
|
| };
|
|
|
|
|