| 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 "ash/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
| 8 #include "ash/accessibility_types.h" | 8 #include "ash/accessibility_types.h" |
| 9 #include "ash/resources/vector_icons/vector_icons.h" | 9 #include "ash/resources/vector_icons/vector_icons.h" |
| 10 #include "ash/session/session_controller.h" |
| 10 #include "ash/session/session_state_delegate.h" | 11 #include "ash/session/session_state_delegate.h" |
| 11 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 12 #include "ash/shell_port.h" | 13 #include "ash/shell_port.h" |
| 13 #include "ash/strings/grit/ash_strings.h" | 14 #include "ash/strings/grit/ash_strings.h" |
| 14 #include "ash/system/tray/hover_highlight_view.h" | 15 #include "ash/system/tray/hover_highlight_view.h" |
| 15 #include "ash/system/tray/system_tray.h" | 16 #include "ash/system/tray/system_tray.h" |
| 16 #include "ash/system/tray/system_tray_controller.h" | 17 #include "ash/system/tray/system_tray_controller.h" |
| 17 #include "ash/system/tray/system_tray_delegate.h" | |
| 18 #include "ash/system/tray/system_tray_notifier.h" | 18 #include "ash/system/tray/system_tray_notifier.h" |
| 19 #include "ash/system/tray/tray_constants.h" | 19 #include "ash/system/tray/tray_constants.h" |
| 20 #include "ash/system/tray/tray_details_view.h" | 20 #include "ash/system/tray/tray_details_view.h" |
| 21 #include "ash/system/tray/tray_item_more.h" | 21 #include "ash/system/tray/tray_item_more.h" |
| 22 #include "ash/system/tray/tray_popup_item_style.h" | 22 #include "ash/system/tray/tray_popup_item_style.h" |
| 23 #include "ash/system/tray/tray_popup_utils.h" | 23 #include "ash/system/tray/tray_popup_utils.h" |
| 24 #include "ash/system/tray/tri_view.h" | 24 #include "ash/system/tray/tri_view.h" |
| 25 #include "base/strings/utf_string_conversions.h" | 25 #include "base/strings/utf_string_conversions.h" |
| 26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 #include "ui/base/resource/resource_bundle.h" | 27 #include "ui/base/resource/resource_bundle.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 if (delegate->IsFocusHighlightEnabled()) | 84 if (delegate->IsFocusHighlightEnabled()) |
| 85 state |= A11Y_HIGHLIGHT_KEYBOARD_FOCUS; | 85 state |= A11Y_HIGHLIGHT_KEYBOARD_FOCUS; |
| 86 if (delegate->IsStickyKeysEnabled()) | 86 if (delegate->IsStickyKeysEnabled()) |
| 87 state |= A11Y_STICKY_KEYS; | 87 state |= A11Y_STICKY_KEYS; |
| 88 if (delegate->IsTapDraggingEnabled()) | 88 if (delegate->IsTapDraggingEnabled()) |
| 89 state |= A11Y_TAP_DRAGGING; | 89 state |= A11Y_TAP_DRAGGING; |
| 90 return state; | 90 return state; |
| 91 } | 91 } |
| 92 | 92 |
| 93 LoginStatus GetCurrentLoginStatus() { | 93 LoginStatus GetCurrentLoginStatus() { |
| 94 return Shell::Get()->system_tray_delegate()->GetUserLoginStatus(); | 94 return Shell::Get()->session_controller()->login_status(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace | 97 } // namespace |
| 98 | 98 |
| 99 namespace tray { | 99 namespace tray { |
| 100 | 100 |
| 101 class DefaultAccessibilityView : public TrayItemMore { | 101 class DefaultAccessibilityView : public TrayItemMore { |
| 102 public: | 102 public: |
| 103 explicit DefaultAccessibilityView(SystemTrayItem* owner) | 103 explicit DefaultAccessibilityView(SystemTrayItem* owner) |
| 104 : TrayItemMore(owner) { | 104 : TrayItemMore(owner) { |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 if (detailed_popup_) | 529 if (detailed_popup_) |
| 530 detailed_popup_->GetWidget()->Close(); | 530 detailed_popup_->GetWidget()->Close(); |
| 531 if (detailed_menu_) | 531 if (detailed_menu_) |
| 532 detailed_menu_->GetWidget()->Close(); | 532 detailed_menu_->GetWidget()->Close(); |
| 533 } | 533 } |
| 534 | 534 |
| 535 previous_accessibility_state_ = accessibility_state; | 535 previous_accessibility_state_ = accessibility_state; |
| 536 } | 536 } |
| 537 | 537 |
| 538 } // namespace ash | 538 } // namespace ash |
| OLD | NEW |