| 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 #ifndef ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
| 6 #define ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ash/common/accessibility_delegate.h" | 10 #include "ash/common/accessibility_delegate.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 public ShellObserver { | 57 public ShellObserver { |
| 58 public: | 58 public: |
| 59 AccessibilityDetailedView(SystemTrayItem* owner, LoginStatus login); | 59 AccessibilityDetailedView(SystemTrayItem* owner, LoginStatus login); |
| 60 ~AccessibilityDetailedView() override {} | 60 ~AccessibilityDetailedView() override {} |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 // TrayDetailsView: | 63 // TrayDetailsView: |
| 64 void HandleViewClicked(views::View* view) override; | 64 void HandleViewClicked(views::View* view) override; |
| 65 void HandleButtonPressed(views::Button* sender, | 65 void HandleButtonPressed(views::Button* sender, |
| 66 const ui::Event& event) override; | 66 const ui::Event& event) override; |
| 67 void ShowSettings() override; | 67 void CreateExtraTitleRowButtons() override; |
| 68 |
| 69 // Launches the WebUI settings in a browser and closes the system menu. |
| 70 void ShowSettings(); |
| 71 |
| 72 // Launches the a11y help article in a browser and closes the system menu. |
| 73 void ShowHelp(); |
| 68 | 74 |
| 69 // Add the accessibility feature list. | 75 // Add the accessibility feature list. |
| 70 void AppendAccessibilityList(); | 76 void AppendAccessibilityList(); |
| 71 | 77 |
| 72 // Add help entries. Only used for non-MD. | 78 // Add help entries. Only used for non-MD. |
| 73 void AppendHelpEntries(); | 79 void AppendHelpEntries(); |
| 74 | 80 |
| 75 // Helper function to create entries in the detailed accessibility view. The | 81 // Helper function to create entries in the detailed accessibility view. The |
| 76 // |icon| parameter is used to create button icons for MD only. | 82 // |icon| parameter is used to create button icons for MD only. |
| 77 HoverHighlightView* AddScrollListItem(const base::string16& text, | 83 HoverHighlightView* AddScrollListItem(const base::string16& text, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // A11y feature status on just entering the lock screen. | 146 // A11y feature status on just entering the lock screen. |
| 141 bool show_a11y_menu_on_lock_screen_; | 147 bool show_a11y_menu_on_lock_screen_; |
| 142 | 148 |
| 143 friend class chromeos::TrayAccessibilityTest; | 149 friend class chromeos::TrayAccessibilityTest; |
| 144 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); | 150 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); |
| 145 }; | 151 }; |
| 146 | 152 |
| 147 } // namespace ash | 153 } // namespace ash |
| 148 | 154 |
| 149 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 155 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
| OLD | NEW |