| OLD | NEW |
| 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/tray_display.h" | 5 #include "ash/system/chromeos/tray_display.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/content/display/screen_orientation_controller_chromeos.h" | 9 #include "ash/content/display/screen_orientation_controller_chromeos.h" |
| 10 #include "ash/display/display_controller.h" | 10 #include "ash/display/display_controller.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, | 85 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, |
| 86 GetDisplayName(display_id), | 86 GetDisplayName(display_id), |
| 87 display_data); | 87 display_data); |
| 88 } | 88 } |
| 89 | 89 |
| 90 base::string16 GetAllDisplayInfo() { | 90 base::string16 GetAllDisplayInfo() { |
| 91 DisplayManager* display_manager = GetDisplayManager(); | 91 DisplayManager* display_manager = GetDisplayManager(); |
| 92 std::vector<base::string16> lines; | 92 std::vector<base::string16> lines; |
| 93 int64 internal_id = gfx::Display::kInvalidDisplayID; | 93 int64 internal_id = gfx::Display::kInvalidDisplayID; |
| 94 // Make sure to show the internal display first. | 94 // Make sure to show the internal display first. |
| 95 if (gfx::Display::HasInternalDisplay() && | 95 if (!display_manager->IsInUnifiedMode() && |
| 96 gfx::Display::HasInternalDisplay() && |
| 96 gfx::Display::InternalDisplayId() == | 97 gfx::Display::InternalDisplayId() == |
| 97 display_manager->first_display_id()) { | 98 display_manager->first_display_id()) { |
| 98 internal_id = display_manager->first_display_id(); | 99 internal_id = display_manager->first_display_id(); |
| 99 lines.push_back(GetDisplayInfoLine(internal_id)); | 100 lines.push_back(GetDisplayInfoLine(internal_id)); |
| 100 } | 101 } |
| 101 | 102 |
| 102 for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) { | 103 for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) { |
| 103 int64 id = display_manager->GetDisplayAt(i).id(); | 104 int64 id = display_manager->GetDisplayAt(i).id(); |
| 104 if (id == internal_id) | 105 if (id == internal_id) |
| 105 continue; | 106 continue; |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) { | 446 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) { |
| 446 views::View* view = default_; | 447 views::View* view = default_; |
| 447 if (view) { | 448 if (view) { |
| 448 view->GetAccessibleState(state); | 449 view->GetAccessibleState(state); |
| 449 return true; | 450 return true; |
| 450 } | 451 } |
| 451 return false; | 452 return false; |
| 452 } | 453 } |
| 453 | 454 |
| 454 } // namespace ash | 455 } // namespace ash |
| OLD | NEW |