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

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

Issue 2295843006: Signin screen and locked screen status area focus advancing (Closed)
Patch Set: optimization 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 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_STATUS_AREA_WIDGET_H_ 5 #ifndef ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_
6 #define ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ 6 #define ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/login_status.h" 9 #include "ash/common/login_status.h"
10 #include "ash/common/shelf/shelf_background_animator_observer.h" 10 #include "ash/common/shelf/shelf_background_animator_observer.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // True if any message bubble is shown. 82 // True if any message bubble is shown.
83 bool IsMessageBubbleShown() const; 83 bool IsMessageBubbleShown() const;
84 84
85 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a 85 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a
86 // paint. 86 // paint.
87 void SchedulePaint(); 87 void SchedulePaint();
88 88
89 // Overridden from views::Widget: 89 // Overridden from views::Widget:
90 const ui::NativeTheme* GetNativeTheme() const override; 90 const ui::NativeTheme* GetNativeTheme() const override;
91 void OnNativeWidgetActivationChanged(bool active) override; 91 void OnNativeWidgetActivationChanged(bool active) override;
92 void OnKeyEvent(ui::KeyEvent* event) override;
92 93
93 // ShelfBackgroundAnimatorObserver: 94 // ShelfBackgroundAnimatorObserver:
94 void UpdateShelfItemBackground(int alpha) override; 95 void UpdateShelfItemBackground(int alpha) override;
95 96
96 private: 97 private:
97 void AddSystemTray(); 98 void AddSystemTray();
98 void AddWebNotificationTray(); 99 void AddWebNotificationTray();
99 #if defined(OS_CHROMEOS) 100 #if defined(OS_CHROMEOS)
100 void AddLogoutButtonTray(); 101 void AddLogoutButtonTray();
101 void AddPaletteTray(); 102 void AddPaletteTray();
102 void AddVirtualKeyboardTray(); 103 void AddVirtualKeyboardTray();
103 void AddImeMenuTray(); 104 void AddImeMenuTray();
104 105
105 // Checks if |tray| is the next visible tray to the left of 106 // Checks if |tray| is the next visible tray to the left of
106 // |logout_button_tray_|. Returns true if both are visible, false otherwise. 107 // |logout_button_tray_|. Returns true if both are visible, false otherwise.
107 bool IsNextVisibleTrayToLogout(TrayBackgroundView* tray) const; 108 bool IsNextVisibleTrayToLogout(TrayBackgroundView* tray) const;
108 #endif 109 #endif
109 void AddOverviewButtonTray(); 110 void AddOverviewButtonTray();
110 111
112 void HandleFocusKeyEvent(ui::KeyEvent* event);
113
111 // Weak pointers to View classes that are parented to StatusAreaWidget: 114 // Weak pointers to View classes that are parented to StatusAreaWidget:
112 StatusAreaWidgetDelegate* status_area_widget_delegate_; 115 StatusAreaWidgetDelegate* status_area_widget_delegate_;
113 OverviewButtonTray* overview_button_tray_; 116 OverviewButtonTray* overview_button_tray_;
114 SystemTray* system_tray_; 117 SystemTray* system_tray_;
115 WebNotificationTray* web_notification_tray_; 118 WebNotificationTray* web_notification_tray_;
116 #if defined(OS_CHROMEOS) 119 #if defined(OS_CHROMEOS)
117 LogoutButtonTray* logout_button_tray_; 120 LogoutButtonTray* logout_button_tray_;
118 PaletteTray* palette_tray_; 121 PaletteTray* palette_tray_;
119 VirtualKeyboardTray* virtual_keyboard_tray_; 122 VirtualKeyboardTray* virtual_keyboard_tray_;
120 ImeMenuTray* ime_menu_tray_; 123 ImeMenuTray* ime_menu_tray_;
121 #endif 124 #endif
122 LoginStatus login_status_; 125 LoginStatus login_status_;
123 126
124 WmShelf* wm_shelf_; 127 WmShelf* wm_shelf_;
125 128
126 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); 129 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
127 }; 130 };
128 131
129 } // namespace ash 132 } // namespace ash
130 133
131 #endif // ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_ 134 #endif // ASH_COMMON_SYSTEM_STATUS_AREA_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698