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 "chrome/browser/ui/ash/multi_user/user_switch_util.h" | 5 #include "chrome/browser/ui/ash/multi_user/user_switch_util.h" |
6 | 6 |
7 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h" | 7 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h" |
| 8 #include "ash/common/system/tray/system_tray.h" |
8 #include "ash/shell.h" | 9 #include "ash/shell.h" |
9 #include "ash/strings/grit/ash_strings.h" | 10 #include "ash/strings/grit/ash_strings.h" |
10 #include "ash/system/tray/system_tray.h" | |
11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
12 #include "ui/base/resource/resource_bundle.h" | 12 #include "ui/base/resource/resource_bundle.h" |
13 #include "ui/views/controls/label.h" | 13 #include "ui/views/controls/label.h" |
14 #include "ui/views/layout/grid_layout.h" | 14 #include "ui/views/layout/grid_layout.h" |
15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
16 #include "ui/views/window/dialog_delegate.h" | 16 #include "ui/views/window/dialog_delegate.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Default width/height of the dialog. | 20 // Default width/height of the dialog. |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 186 |
187 bool TestAndTerminateDesktopCastingWarningForTest(bool accept) { | 187 bool TestAndTerminateDesktopCastingWarningForTest(bool accept) { |
188 if (!instance_for_test) | 188 if (!instance_for_test) |
189 return false; | 189 return false; |
190 if (accept) | 190 if (accept) |
191 instance_for_test->Accept(); | 191 instance_for_test->Accept(); |
192 delete instance_for_test->GetWidget()->GetNativeWindow(); | 192 delete instance_for_test->GetWidget()->GetNativeWindow(); |
193 CHECK(!instance_for_test); | 193 CHECK(!instance_for_test); |
194 return true; | 194 return true; |
195 } | 195 } |
OLD | NEW |