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/display/display_manager.h" | 7 #include "ash/display/display_manager.h" |
8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
9 #include "ash/screen_util.h" | 9 #include "ash/screen_util.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 } else { | 38 } else { |
39 lines.push_back(l10n_util::GetStringFUTF16( | 39 lines.push_back(l10n_util::GetStringFUTF16( |
40 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, | 40 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, |
41 name1, base::UTF8ToUTF16(data1))); | 41 name1, base::UTF8ToUTF16(data1))); |
42 } | 42 } |
43 if (!name2.empty()) { | 43 if (!name2.empty()) { |
44 lines.push_back(l10n_util::GetStringFUTF16( | 44 lines.push_back(l10n_util::GetStringFUTF16( |
45 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, | 45 IDS_ASH_STATUS_TRAY_DISPLAY_SINGLE_DISPLAY, |
46 name2, base::UTF8ToUTF16(data2))); | 46 name2, base::UTF8ToUTF16(data2))); |
47 } | 47 } |
48 return JoinString(lines, '\n'); | 48 return base::JoinString(lines, base::ASCIIToUTF16("\n")); |
49 } | 49 } |
50 | 50 |
51 base::string16 GetMirroredTooltipText(const base::string16& headline, | 51 base::string16 GetMirroredTooltipText(const base::string16& headline, |
52 const base::string16& name, | 52 const base::string16& name, |
53 const std::string& data) { | 53 const std::string& data) { |
54 return GetTooltipText(headline, name, data, base::string16(), ""); | 54 return GetTooltipText(headline, name, data, base::string16(), ""); |
55 } | 55 } |
56 | 56 |
57 base::string16 GetFirstDisplayName() { | 57 base::string16 GetFirstDisplayName() { |
58 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); | 58 DisplayManager* display_manager = Shell::GetInstance()->display_manager(); |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 // rotate the second. | 589 // rotate the second. |
590 UpdateDisplay("400x400,200x200/r"); | 590 UpdateDisplay("400x400,200x200/r"); |
591 EXPECT_EQ(l10n_util::GetStringFUTF16( | 591 EXPECT_EQ(l10n_util::GetStringFUTF16( |
592 IDS_ASH_STATUS_TRAY_DISPLAY_ROTATED, GetSecondDisplayName(), | 592 IDS_ASH_STATUS_TRAY_DISPLAY_ROTATED, GetSecondDisplayName(), |
593 l10n_util::GetStringUTF16( | 593 l10n_util::GetStringUTF16( |
594 IDS_ASH_STATUS_TRAY_DISPLAY_ORIENTATION_90)), | 594 IDS_ASH_STATUS_TRAY_DISPLAY_ORIENTATION_90)), |
595 GetDisplayNotificationAdditionalText()); | 595 GetDisplayNotificationAdditionalText()); |
596 } | 596 } |
597 | 597 |
598 } // namespace ash | 598 } // namespace ash |
OLD | NEW |