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

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

Issue 2300353002: Revert of Make TrayDetailsView a ViewClickListener and ButtonListener (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/tray/view_click_listener.h ('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..f06913efca00e1b8ffdc241ddede46b435bc5041 100644
--- a/ash/common/system/tray_accessibility.h
+++ b/ash/common/system/tray_accessibility.h
@@ -13,6 +13,7 @@
#include "ash/common/system/tray/tray_details_view.h"
#include "ash/common/system/tray/tray_image_item.h"
#include "ash/common/system/tray/tray_notification_view.h"
+#include "ash/common/system/tray/view_click_listener.h"
#include "base/macros.h"
#include "ui/gfx/font.h"
#include "ui/views/controls/button/button.h"
@@ -49,17 +50,14 @@
};
class AccessibilityDetailedView : public TrayDetailsView,
+ public ViewClickListener,
+ public views::ButtonListener,
public ShellObserver {
public:
AccessibilityDetailedView(SystemTrayItem* owner, LoginStatus login);
~AccessibilityDetailedView() override {}
private:
- // TrayDetailsView:
- void HandleViewClicked(views::View* view) override;
- void HandleButtonPressed(views::Button* sender,
- const ui::Event& event) override;
-
// Add the accessibility feature list.
void AppendAccessibilityList();
@@ -69,6 +67,10 @@
HoverHighlightView* AddScrollListItem(const base::string16& text,
bool highlight,
bool checked);
+ // Overridden from ViewClickListener.
+ void OnViewClicked(views::View* sender) override;
+ // Overridden from ButtonListener.
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
views::View* spoken_feedback_view_;
views::View* high_contrast_view_;
« no previous file with comments | « ash/common/system/tray/view_click_listener.h ('k') | ash/common/system/tray_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698