OLD | NEW |
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/logout_button/logout_confirmation_dialog_view.h" | 5 #include "ash/system/logout_button/logout_confirmation_dialog_view.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/system/logout_button/logout_button_tray.h" | 8 #include "ash/system/logout_button/logout_button_tray.h" |
9 #include "ash/system/tray/system_tray_delegate.h" | 9 #include "ash/system/tray/system_tray_delegate.h" |
10 #include "ash/system/tray/tray_constants.h" | 10 #include "ash/system/tray/tray_constants.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "grit/ash_strings.h" | 12 #include "grit/ash_strings.h" |
13 #include "ui/aura/root_window.h" | 13 #include "ui/aura/window_event_dispatcher.h" |
14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
15 #include "ui/base/l10n/time_format.h" | 15 #include "ui/base/l10n/time_format.h" |
16 #include "ui/base/ui_base_types.h" | 16 #include "ui/base/ui_base_types.h" |
17 #include "ui/gfx/text_constants.h" | 17 #include "ui/gfx/text_constants.h" |
18 #include "ui/views/border.h" | 18 #include "ui/views/border.h" |
19 #include "ui/views/controls/label.h" | 19 #include "ui/views/controls/label.h" |
20 #include "ui/views/layout/fill_layout.h" | 20 #include "ui/views/layout/fill_layout.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 | 22 |
23 namespace ash { | 23 namespace ash { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } else { | 128 } else { |
129 text_label_->SetText(l10n_util::GetStringUTF16( | 129 text_label_->SetText(l10n_util::GetStringUTF16( |
130 IDS_ASH_LOGOUT_CONFIRMATION_WARNING_NOW)); | 130 IDS_ASH_LOGOUT_CONFIRMATION_WARNING_NOW)); |
131 timer_.Stop(); | 131 timer_.Stop(); |
132 LogoutCurrentUser(); | 132 LogoutCurrentUser(); |
133 } | 133 } |
134 } | 134 } |
135 | 135 |
136 } // namespace internal | 136 } // namespace internal |
137 } // namespace ash | 137 } // namespace ash |
OLD | NEW |