| 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/tray_accessibility.h" | 5 #include "ash/system/tray_accessibility.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/accessibility_delegate.h" | 10 #include "ash/accessibility_delegate.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ash/system/tray/tray_details_view.h" | 23 #include "ash/system/tray/tray_details_view.h" |
| 24 #include "ash/system/tray/tray_item_more.h" | 24 #include "ash/system/tray/tray_item_more.h" |
| 25 #include "ash/system/tray/tray_popup_utils.h" | 25 #include "ash/system/tray/tray_popup_utils.h" |
| 26 #include "ash/system/tray/tri_view.h" | 26 #include "ash/system/tray/tri_view.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 #include "ui/gfx/image/image.h" | 28 #include "ui/gfx/image/image.h" |
| 29 #include "ui/gfx/paint_vector_icon.h" | 29 #include "ui/gfx/paint_vector_icon.h" |
| 30 #include "ui/gfx/vector_icon_types.h" | 30 #include "ui/gfx/vector_icon_types.h" |
| 31 #include "ui/message_center/message_center.h" | 31 #include "ui/message_center/message_center.h" |
| 32 #include "ui/native_theme/native_theme.h" | 32 #include "ui/native_theme/native_theme.h" |
| 33 #include "ui/resources/grit/ui_resources.h" | |
| 34 #include "ui/views/controls/separator.h" | 33 #include "ui/views/controls/separator.h" |
| 35 #include "ui/views/widget/widget.h" | 34 #include "ui/views/widget/widget.h" |
| 36 | 35 |
| 37 namespace ash { | 36 namespace ash { |
| 38 namespace { | 37 namespace { |
| 39 | 38 |
| 40 const char kNotificationId[] = "chrome://settings/accessibility"; | 39 const char kNotificationId[] = "chrome://settings/accessibility"; |
| 41 | 40 |
| 42 enum AccessibilityState { | 41 enum AccessibilityState { |
| 43 A11Y_NONE = 0, | 42 A11Y_NONE = 0, |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 gfx::Image(gfx::CreateVectorIcon(GetNotificationIcon(being_enabled), | 479 gfx::Image(gfx::CreateVectorIcon(GetNotificationIcon(being_enabled), |
| 481 kMenuIconSize, kMenuIconColor)), | 480 kMenuIconSize, kMenuIconColor)), |
| 482 base::string16(), GURL(), | 481 base::string16(), GURL(), |
| 483 message_center::NotifierId(message_center::NotifierId::APPLICATION, | 482 message_center::NotifierId(message_center::NotifierId::APPLICATION, |
| 484 system_notifier::kNotifierAccessibility), | 483 system_notifier::kNotifierAccessibility), |
| 485 message_center::RichNotificationData(), nullptr); | 484 message_center::RichNotificationData(), nullptr); |
| 486 message_center->AddNotification(std::move(notification)); | 485 message_center->AddNotification(std::move(notification)); |
| 487 } | 486 } |
| 488 | 487 |
| 489 } // namespace ash | 488 } // namespace ash |
| OLD | NEW |