Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: ash/system/chromeos/power/tray_power.cc

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/chromeos/power/power_status_view.cc ('k') | ash/system/tray_accessibility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/power_status_view.cc ('k') | ash/system/tray_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698