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

Side by Side Diff: ash/system/chromeos/session/logout_confirmation_dialog.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/session/logout_confirmation_dialog.h" 5 #include "ash/system/chromeos/session/logout_confirmation_dialog.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/system/chromeos/session/logout_confirmation_controller.h" 8 #include "ash/system/chromeos/session/logout_confirmation_controller.h"
9 #include "ash/system/tray/tray_constants.h" 9 #include "ash/system/tray/tray_constants.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/time/tick_clock.h" 11 #include "base/time/tick_clock.h"
12 #include "grit/ash_strings.h" 12 #include "grit/ash_strings.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 #include "ui/base/l10n/time_format.h" 14 #include "ui/base/l10n/time_format.h"
15 #include "ui/base/ui_base_types.h" 15 #include "ui/base/ui_base_types.h"
16 #include "ui/gfx/text_constants.h" 16 #include "ui/gfx/text_constants.h"
17 #include "ui/views/border.h" 17 #include "ui/views/border.h"
18 #include "ui/views/controls/label.h" 18 #include "ui/views/controls/label.h"
19 #include "ui/views/layout/fill_layout.h" 19 #include "ui/views/layout/fill_layout.h"
20 #include "ui/views/widget/widget.h" 20 #include "ui/views/widget/widget.h"
21 21
22 namespace ash { 22 namespace ash {
23 namespace internal {
24
25 namespace { 23 namespace {
26 24
27 const int kCountdownUpdateIntervalMs = 1000; // 1 second. 25 const int kCountdownUpdateIntervalMs = 1000; // 1 second.
28 26
29 const int kHalfSecondInMs = 500; // Half a second. 27 const int kHalfSecondInMs = 500; // Half a second.
30 28
31 } // namespace 29 } // namespace
32 30
33 LogoutConfirmationDialog::LogoutConfirmationDialog( 31 LogoutConfirmationDialog::LogoutConfirmationDialog(
34 LogoutConfirmationController* controller, 32 LogoutConfirmationController* controller,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ui::TimeFormat::LENGTH_LONG, 103 ui::TimeFormat::LENGTH_LONG,
106 10, 104 10,
107 time_remaining))); 105 time_remaining)));
108 } else { 106 } else {
109 label_->SetText(l10n_util::GetStringUTF16( 107 label_->SetText(l10n_util::GetStringUTF16(
110 IDS_ASH_LOGOUT_CONFIRMATION_WARNING_NOW)); 108 IDS_ASH_LOGOUT_CONFIRMATION_WARNING_NOW));
111 update_timer_.Stop(); 109 update_timer_.Stop();
112 } 110 }
113 } 111 }
114 112
115 } // namespace internal
116 } // namespace ash 113 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/session/logout_confirmation_dialog.h ('k') | ash/system/chromeos/session/tray_session_length_limit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698