Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Unified Diff: ash/common/system/tray_accessibility.h

Issue 2343603003: [Chrome OS MD] Implement accessibility detailed view for the MD Ash system menu (Closed)
Patch Set: ' Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/chromeos/palette/common_palette_tool.cc ('k') | ash/common/system/tray_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray_accessibility.h
diff --git a/ash/common/system/tray_accessibility.h b/ash/common/system/tray_accessibility.h
index 1c280e317a957554a19e5b9348fcde0a22812e23..7116d6ccd958bc4aa3f470abf540d175fe2c9aa0 100644
--- a/ash/common/system/tray_accessibility.h
+++ b/ash/common/system/tray_accessibility.h
@@ -21,6 +21,10 @@ namespace chromeos {
class TrayAccessibilityTest;
}
+namespace gfx {
+struct VectorIcon;
+}
+
namespace views {
class Button;
class ImageView;
@@ -48,6 +52,7 @@ class AccessibilityPopupView : public TrayNotificationView {
DISALLOW_COPY_AND_ASSIGN(AccessibilityPopupView);
};
+// Create the detailed view of accessibility tray.
class AccessibilityDetailedView : public TrayDetailsView,
public ShellObserver {
public:
@@ -63,12 +68,15 @@ class AccessibilityDetailedView : public TrayDetailsView,
// Add the accessibility feature list.
void AppendAccessibilityList();
- // Add help entries.
+ // Add help entries. Only used for non-MD.
void AppendHelpEntries();
+ // Helper function to create entries in the detailed accessibility view. The
+ // |icon| parameter is used to create button icons for MD only.
HoverHighlightView* AddScrollListItem(const base::string16& text,
bool highlight,
- bool checked);
+ bool checked,
+ const gfx::VectorIcon& icon);
views::View* spoken_feedback_view_;
views::View* high_contrast_view_;
« no previous file with comments | « ash/common/system/chromeos/palette/common_palette_tool.cc ('k') | ash/common/system/tray_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698