| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/system/chromeos/power/tray_power.h" | 5 #include "ash/system/chromeos/power/tray_power.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/system/chromeos/power/power_status_view.h" | 8 #include "ash/system/chromeos/power/power_status_view.h" |
| 9 #include "ash/system/date/date_view.h" | 9 #include "ash/system/date/date_view.h" |
| 10 #include "ash/system/system_notifier.h" | 10 #include "ash/system/system_notifier.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "ui/views/view.h" | 29 #include "ui/views/view.h" |
| 30 #include "ui/views/widget/widget.h" | 30 #include "ui/views/widget/widget.h" |
| 31 | 31 |
| 32 using message_center::MessageCenter; | 32 using message_center::MessageCenter; |
| 33 using message_center::Notification; | 33 using message_center::Notification; |
| 34 | 34 |
| 35 namespace ash { | 35 namespace ash { |
| 36 namespace internal { | 36 namespace internal { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 // Top/bottom padding of the text items. | |
| 40 const int kPaddingVertical = 10; | |
| 41 // Specify min width of status label for layout. | |
| 42 const int kLabelMinWidth = 120; | |
| 43 // Notification times. | 39 // Notification times. |
| 44 const int kCriticalSeconds = 5 * 60; | 40 const int kCriticalSeconds = 5 * 60; |
| 45 const int kLowPowerSeconds = 15 * 60; | 41 const int kLowPowerSeconds = 15 * 60; |
| 46 const int kNoWarningSeconds = 30 * 60; | 42 const int kNoWarningSeconds = 30 * 60; |
| 47 // Notification in battery percentage. | 43 // Notification in battery percentage. |
| 48 const double kCriticalPercentage = 5.0; | 44 const double kCriticalPercentage = 5.0; |
| 49 const double kLowPowerPercentage = 10.0; | 45 const double kLowPowerPercentage = 10.0; |
| 50 const double kNoWarningPercentage = 15.0; | 46 const double kNoWarningPercentage = 15.0; |
| 51 | 47 |
| 52 } // namespace | 48 } // namespace |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 return false; | 294 return false; |
| 299 case NOTIFICATION_CRITICAL: | 295 case NOTIFICATION_CRITICAL: |
| 300 return false; | 296 return false; |
| 301 } | 297 } |
| 302 NOTREACHED(); | 298 NOTREACHED(); |
| 303 return false; | 299 return false; |
| 304 } | 300 } |
| 305 | 301 |
| 306 } // namespace internal | 302 } // namespace internal |
| 307 } // namespace ash | 303 } // namespace ash |
| OLD | NEW |