Lines Matching refs:remaining
26 const int limit_min = 15; // Notification will show when remaining number
28 const int limit_max = 30; // Notification will hid when remaining number
31 // by user when time remaining <= critical.
33 base::TimeDelta remaining = object->battery_time_to_empty();
34 int remaining_minutes = remaining.InMinutes();
36 // To simplify the logic - we handle the case of calculating the remaining
38 // remaining time of zero means still calculating, this is denoted by
40 bool line_power = object->line_power_on() || remaining == base::TimeDelta();
43 // goes critical. We only want to do this once even if the time remaining
51 // to line_power, we're calculating our time remaining,
52 // or our time remaining has climbed higher than
56 // and the minutes remaining changed from what's shown.
58 // we know the remaining time, and that time is less than limit.
64 Show(remaining, urgent);
68 Show(remaining, urgent);
73 void LowBatteryObserver::Show(base::TimeDelta remaining, bool urgent) {
75 TimeFormat::TimeRemaining(remaining)), urgent, true);
76 remaining_ = remaining.InMinutes();