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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 lines.push_back(GetDisplayInfoLine(internal_id)); | 100 lines.push_back(GetDisplayInfoLine(internal_id)); |
101 } | 101 } |
102 | 102 |
103 for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) { | 103 for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) { |
104 int64 id = display_manager->GetDisplayAt(i).id(); | 104 int64 id = display_manager->GetDisplayAt(i).id(); |
105 if (id == internal_id) | 105 if (id == internal_id) |
106 continue; | 106 continue; |
107 lines.push_back(GetDisplayInfoLine(id)); | 107 lines.push_back(GetDisplayInfoLine(id)); |
108 } | 108 } |
109 | 109 |
110 return JoinString(lines, '\n'); | 110 return base::JoinString(lines, base::ASCIIToUTF16("\n")); |
111 } | 111 } |
112 | 112 |
113 void OpenSettings() { | 113 void OpenSettings() { |
114 // switch is intentionally introduced without default, to cause an error when | 114 // switch is intentionally introduced without default, to cause an error when |
115 // a new type of login status is introduced. | 115 // a new type of login status is introduced. |
116 switch (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus()) { | 116 switch (Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus()) { |
117 case user::LOGGED_IN_NONE: | 117 case user::LOGGED_IN_NONE: |
118 case user::LOGGED_IN_LOCKED: | 118 case user::LOGGED_IN_LOCKED: |
119 return; | 119 return; |
120 | 120 |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) { | 446 bool TrayDisplay::GetAccessibleStateForTesting(ui::AXViewState* state) { |
447 views::View* view = default_; | 447 views::View* view = default_; |
448 if (view) { | 448 if (view) { |
449 view->GetAccessibleState(state); | 449 view->GetAccessibleState(state); |
450 return true; | 450 return true; |
451 } | 451 } |
452 return false; | 452 return false; |
453 } | 453 } |
454 | 454 |
455 } // namespace ash | 455 } // namespace ash |
OLD | NEW |