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

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

Issue 2785273002: [Ash] Fold TrayNotificationView into AccessibilityPopupView (Closed)
Patch Set: move work out of ctor Created 3 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/common/system/tray/tray_notification_view.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 26b822f5338e2b49a427a19cc6e17cedce934cfa..3bc371a9177fd1149c9b47a623e2428e15393416 100644
--- a/ash/common/system/tray_accessibility.h
+++ b/ash/common/system/tray_accessibility.h
@@ -12,10 +12,10 @@
#include "ash/common/system/accessibility_observer.h"
#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 "base/macros.h"
#include "ui/gfx/font.h"
#include "ui/views/controls/button/button.h"
+#include "ui/views/view.h"
namespace chromeos {
class TrayAccessibilityTest;
@@ -38,12 +38,19 @@ class SystemTrayItem;
namespace tray {
-class AccessibilityPopupView : public TrayNotificationView {
+// A view for closable notification views, laid out like:
+// -------------------
+// | icon contents x |
+// ----------------v--
+// The close button will call OnClose() when clicked.
+class AccessibilityPopupView : public views::View {
public:
explicit AccessibilityPopupView(uint32_t enabled_state_bits);
const views::Label* label_for_test() const { return label_; }
+ void Init();
+
private:
views::Label* CreateLabel(uint32_t enabled_state_bits);
« no previous file with comments | « ash/common/system/tray/tray_notification_view.cc ('k') | ash/common/system/tray_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698