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/screen_layout_observer.h" | 5 #include "ash/system/chromeos/screen_layout_observer.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/common/metrics/user_metrics_action.h" | 11 #include "ash/common/metrics/user_metrics_action.h" |
12 #include "ash/common/system/chromeos/devicetype_utils.h" | 12 #include "ash/common/system/chromeos/devicetype_utils.h" |
13 #include "ash/common/system/system_notifier.h" | 13 #include "ash/common/system/system_notifier.h" |
14 #include "ash/common/system/tray/fixed_sized_image_view.h" | 14 #include "ash/common/system/tray/fixed_sized_image_view.h" |
15 #include "ash/common/system/tray/system_tray_controller.h" | 15 #include "ash/common/system/tray/system_tray_controller.h" |
16 #include "ash/common/system/tray/system_tray_delegate.h" | 16 #include "ash/common/system/tray/system_tray_delegate.h" |
17 #include "ash/common/system/tray/tray_constants.h" | 17 #include "ash/common/system/tray/tray_constants.h" |
18 #include "ash/common/system/tray/tray_notification_view.h" | |
19 #include "ash/common/wm_shell.h" | 18 #include "ash/common/wm_shell.h" |
20 #include "ash/display/screen_orientation_controller_chromeos.h" | 19 #include "ash/display/screen_orientation_controller_chromeos.h" |
21 #include "ash/shell.h" | 20 #include "ash/shell.h" |
22 #include "base/bind.h" | 21 #include "base/bind.h" |
23 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
24 #include "base/strings/utf_string_conversions.h" | 23 #include "base/strings/utf_string_conversions.h" |
25 #include "grit/ash_resources.h" | 24 #include "grit/ash_resources.h" |
26 #include "grit/ash_strings.h" | 25 #include "grit/ash_strings.h" |
27 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
28 #include "ui/base/resource/resource_bundle.h" | 27 #include "ui/base/resource/resource_bundle.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 if (!show_notifications_for_testing) | 306 if (!show_notifications_for_testing) |
308 return; | 307 return; |
309 | 308 |
310 base::string16 message; | 309 base::string16 message; |
311 base::string16 additional_message; | 310 base::string16 additional_message; |
312 if (GetDisplayMessageForNotification(old_info, &message, &additional_message)) | 311 if (GetDisplayMessageForNotification(old_info, &message, &additional_message)) |
313 CreateOrUpdateNotification(message, additional_message); | 312 CreateOrUpdateNotification(message, additional_message); |
314 } | 313 } |
315 | 314 |
316 } // namespace ash | 315 } // namespace ash |
OLD | NEW |