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

Side by Side Diff: ash/common/system/tray_accessibility.h

Issue 2785273002: [Ash] Fold TrayNotificationView into AccessibilityPopupView (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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"
11 #include "ash/common/shell_observer.h" 11 #include "ash/common/shell_observer.h"
12 #include "ash/common/system/accessibility_observer.h" 12 #include "ash/common/system/accessibility_observer.h"
13 #include "ash/common/system/tray/tray_details_view.h" 13 #include "ash/common/system/tray/tray_details_view.h"
14 #include "ash/common/system/tray/tray_image_item.h" 14 #include "ash/common/system/tray/tray_image_item.h"
15 #include "ash/common/system/tray/tray_notification_view.h"
16 #include "base/macros.h" 15 #include "base/macros.h"
17 #include "ui/gfx/font.h" 16 #include "ui/gfx/font.h"
18 #include "ui/views/controls/button/button.h" 17 #include "ui/views/controls/button/button.h"
18 #include "ui/views/view.h"
19 19
20 namespace chromeos { 20 namespace chromeos {
21 class TrayAccessibilityTest; 21 class TrayAccessibilityTest;
22 } 22 }
23 23
24 namespace gfx { 24 namespace gfx {
25 struct VectorIcon; 25 struct VectorIcon;
26 } 26 }
27 27
28 namespace views { 28 namespace views {
29 class Button; 29 class Button;
30 class CustomButton; 30 class CustomButton;
31 class Label; 31 class Label;
32 class View; 32 class View;
33 } 33 }
34 34
35 namespace ash { 35 namespace ash {
36 class HoverHighlightView; 36 class HoverHighlightView;
37 class SystemTrayItem; 37 class SystemTrayItem;
38 38
39 namespace tray { 39 namespace tray {
40 40
41 class AccessibilityPopupView : public TrayNotificationView { 41 // A view for closable notification views, laid out like:
42 // -------------------
43 // | icon contents x |
44 // ----------------v--
45 // The close button will call OnClose() when clicked.
46 class AccessibilityPopupView : public views::View {
42 public: 47 public:
43 explicit AccessibilityPopupView(uint32_t enabled_state_bits); 48 explicit AccessibilityPopupView(uint32_t enabled_state_bits);
44 49
45 const views::Label* label_for_test() const { return label_; } 50 const views::Label* label_for_test() const { return label_; }
46 51
47 private: 52 private:
48 views::Label* CreateLabel(uint32_t enabled_state_bits); 53 views::Label* CreateLabel(uint32_t enabled_state_bits);
54 void InitView();
Evan Stade 2017/03/31 00:07:24 nit: might as well just inline the implementation
tdanderson 2017/04/03 18:26:46 Done.
49 55
50 views::Label* label_; 56 views::Label* label_;
51 57
52 DISALLOW_COPY_AND_ASSIGN(AccessibilityPopupView); 58 DISALLOW_COPY_AND_ASSIGN(AccessibilityPopupView);
53 }; 59 };
54 60
55 // Create the detailed view of accessibility tray. 61 // Create the detailed view of accessibility tray.
56 class AccessibilityDetailedView : public TrayDetailsView, 62 class AccessibilityDetailedView : public TrayDetailsView,
57 public ShellObserver { 63 public ShellObserver {
58 public: 64 public:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // A11y feature status on just entering the lock screen. 148 // A11y feature status on just entering the lock screen.
143 bool show_a11y_menu_on_lock_screen_; 149 bool show_a11y_menu_on_lock_screen_;
144 150
145 friend class chromeos::TrayAccessibilityTest; 151 friend class chromeos::TrayAccessibilityTest;
146 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); 152 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility);
147 }; 153 };
148 154
149 } // namespace ash 155 } // namespace ash
150 156
151 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ 157 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_
OLDNEW
« 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