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

Unified Diff: ash/system/tray_accessibility.h

Issue 213233003: Show a notification when a braille display is connected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Style and const correctness fixes. Created 6 years, 9 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/default_accessibility_delegate.cc ('k') | ash/system/tray_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray_accessibility.h
diff --git a/ash/system/tray_accessibility.h b/ash/system/tray_accessibility.h
index 1d6e9f8557234a0d2856ccab3392b45ba373d45b..df0a186d6e6fd0c1a458db5bf3857a64ba2e9843 100644
--- a/ash/system/tray_accessibility.h
+++ b/ash/system/tray_accessibility.h
@@ -9,6 +9,7 @@
#include "ash/shell_observer.h"
#include "ash/system/tray/tray_details_view.h"
#include "ash/system/tray/tray_image_item.h"
+#include "ash/system/tray/tray_notification_view.h"
#include "ash/system/tray/view_click_listener.h"
#include "base/gtest_prod_util.h"
#include "ui/gfx/font.h"
@@ -21,6 +22,7 @@ class TrayAccessibilityTest;
namespace views {
class Button;
class ImageView;
+class Label;
class View;
}
@@ -43,7 +45,19 @@ class HoverHighlightView;
namespace tray {
-class AccessibilityPopupView;
+class AccessibilityPopupView : public TrayNotificationView {
+ public:
+ AccessibilityPopupView(SystemTrayItem* owner, uint32 enabled_state_bits);
+
+ const views::Label* label_for_test() const { return label_; }
+
+ private:
+ views::Label* CreateLabel(uint32 enabled_state_bits);
+
+ views::Label* label_;
+
+ DISALLOW_COPY_AND_ASSIGN(AccessibilityPopupView);
+};
class AccessibilityDetailedView : public TrayDetailsView,
public ViewClickListener,
@@ -119,7 +133,10 @@ class TrayAccessibility : public TrayImageItem,
tray::AccessibilityPopupView* detailed_popup_;
tray::AccessibilityDetailedView* detailed_menu_;
- bool request_popup_view_;
+ // Bitmap of fvalues from AccessibilityState. Can contain any or
+ // both of A11Y_SPOKEN_FEEDBACK A11Y_BRAILLE_DISPLAY_CONNECTED.
+ uint32 request_popup_view_state_;
+
bool tray_icon_visible_;
user::LoginStatus login_;
« no previous file with comments | « ash/default_accessibility_delegate.cc ('k') | ash/system/tray_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698