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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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/accessibility_delegate.h" 7 #include "ash/accessibility_delegate.h"
8 #include "ash/ash_switches.h" 8 #include "ash/ash_switches.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/system/chromeos/power/power_status_view.h" 10 #include "ash/system/chromeos/power/power_status_view.h"
(...skipping 20 matching lines...) Expand all
31 #include "ui/views/layout/box_layout.h" 31 #include "ui/views/layout/box_layout.h"
32 #include "ui/views/layout/fill_layout.h" 32 #include "ui/views/layout/fill_layout.h"
33 #include "ui/views/layout/grid_layout.h" 33 #include "ui/views/layout/grid_layout.h"
34 #include "ui/views/view.h" 34 #include "ui/views/view.h"
35 #include "ui/views/widget/widget.h" 35 #include "ui/views/widget/widget.h"
36 36
37 using message_center::MessageCenter; 37 using message_center::MessageCenter;
38 using message_center::Notification; 38 using message_center::Notification;
39 39
40 namespace ash { 40 namespace ash {
41 namespace internal {
42 namespace tray { 41 namespace tray {
43
44 namespace { 42 namespace {
45 43
46 const int kMaxSpringChargerAccessibilityNotifyCount = 3; 44 const int kMaxSpringChargerAccessibilityNotifyCount = 3;
47 const int kSpringChargerAccessibilityTimerFirstTimeNotifyInSeconds = 30; 45 const int kSpringChargerAccessibilityTimerFirstTimeNotifyInSeconds = 30;
48 const int kSpringChargerAccessibilityTimerRepeatInMinutes = 5; 46 const int kSpringChargerAccessibilityTimerRepeatInMinutes = 5;
49 47
50 } 48 }
51 49
52 // This view is used only for the tray. 50 // This view is used only for the tray.
53 class PowerTrayView : public views::ImageView { 51 class PowerTrayView : public views::ImageView {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 SAFE_SPRING_CHARGER : UNCONFIRMED_SPRING_CHARGER; 388 SAFE_SPRING_CHARGER : UNCONFIRMED_SPRING_CHARGER;
391 } 389 }
392 390
393 if (current_charger != UNKNOWN_CHARGER) { 391 if (current_charger != UNKNOWN_CHARGER) {
394 UMA_HISTOGRAM_ENUMERATION("Power.ChargerType", 392 UMA_HISTOGRAM_ENUMERATION("Power.ChargerType",
395 current_charger, 393 current_charger,
396 CHARGER_TYPE_COUNT); 394 CHARGER_TYPE_COUNT);
397 } 395 }
398 } 396 }
399 397
400 } // namespace internal
401 } // namespace ash 398 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/power/tray_power.h ('k') | ash/system/chromeos/power/tray_power_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698