| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/tray_display.h" | 5 #include "ash/system/chromeos/tray_display.h" |
| 6 | 6 |
| 7 #include "ash/common/system/chromeos/devicetype_utils.h" |
| 7 #include "ash/display/display_manager.h" | 8 #include "ash/display/display_manager.h" |
| 8 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 9 #include "ash/screen_util.h" | 10 #include "ash/screen_util.h" |
| 10 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 11 #include "ash/system/chromeos/devicetype_utils.h" | |
| 12 #include "ash/system/tray/system_tray.h" | 12 #include "ash/system/tray/system_tray.h" |
| 13 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
| 14 #include "ash/test/display_manager_test_api.h" | 14 #include "ash/test/display_manager_test_api.h" |
| 15 #include "ash/test/test_system_tray_delegate.h" | 15 #include "ash/test/test_system_tray_delegate.h" |
| 16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "grit/ash_strings.h" | 19 #include "grit/ash_strings.h" |
| 20 #include "ui/accessibility/ax_view_state.h" | 20 #include "ui/accessibility/ax_view_state.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 display::Display::ROTATION_SOURCE_ACCELEROMETER); | 620 display::Display::ROTATION_SOURCE_ACCELEROMETER); |
| 621 EXPECT_FALSE(IsDisplayVisibleInTray()); | 621 EXPECT_FALSE(IsDisplayVisibleInTray()); |
| 622 | 622 |
| 623 // If a non-rotation setting is changed, display regardless of the source of | 623 // If a non-rotation setting is changed, display regardless of the source of |
| 624 // rotation so that the full message is shown. | 624 // rotation so that the full message is shown. |
| 625 UpdateDisplay("400x400@1.5"); | 625 UpdateDisplay("400x400@1.5"); |
| 626 EXPECT_TRUE(IsDisplayVisibleInTray()); | 626 EXPECT_TRUE(IsDisplayVisibleInTray()); |
| 627 } | 627 } |
| 628 | 628 |
| 629 } // namespace ash | 629 } // namespace ash |
| OLD | NEW |