| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/display/display_util.h" | 5 #include "ash/display/display_util.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "ash/common/system/system_notifier.h" |
| 9 #include "ash/display/display_info.h" | 10 #include "ash/display/display_info.h" |
| 10 #include "ash/display/display_manager.h" | 11 #include "ash/display/display_manager.h" |
| 11 #include "ash/host/ash_window_tree_host.h" | 12 #include "ash/host/ash_window_tree_host.h" |
| 12 #include "ash/new_window_delegate.h" | 13 #include "ash/new_window_delegate.h" |
| 13 #include "ash/shell.h" | 14 #include "ash/shell.h" |
| 14 #include "ash/system/system_notifier.h" | |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "grit/ash_resources.h" | 16 #include "grit/ash_resources.h" |
| 17 #include "ui/aura/env.h" | 17 #include "ui/aura/env.h" |
| 18 #include "ui/aura/window_tree_host.h" | 18 #include "ui/aura/window_tree_host.h" |
| 19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
| 20 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
| 21 #include "ui/display/display.h" | 21 #include "ui/display/display.h" |
| 22 #include "ui/gfx/geometry/point.h" | 22 #include "ui/gfx/geometry/point.h" |
| 23 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
| 24 #include "ui/gfx/geometry/size_conversions.h" | 24 #include "ui/gfx/geometry/size_conversions.h" |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 message_center::NotificationList::Notifications notifications = | 466 message_center::NotificationList::Notifications notifications = |
| 467 message_center::MessageCenter::Get()->GetVisibleNotifications(); | 467 message_center::MessageCenter::Get()->GetVisibleNotifications(); |
| 468 for (auto const notification : notifications) { | 468 for (auto const notification : notifications) { |
| 469 if (notification->id() == kDisplayErrorNotificationId) | 469 if (notification->id() == kDisplayErrorNotificationId) |
| 470 return notification->message(); | 470 return notification->message(); |
| 471 } | 471 } |
| 472 return base::string16(); | 472 return base::string16(); |
| 473 } | 473 } |
| 474 | 474 |
| 475 } // namespace ash | 475 } // namespace ash |
| OLD | NEW |