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

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

Issue 177123016: Add a11y virtual keyboard icon when a11y VK is enabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
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_SYSTEM_STATUS_AREA_WIDGET_H_ 5 #ifndef ASH_SYSTEM_STATUS_AREA_WIDGET_H_
6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_ 6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/shelf_types.h" 9 #include "ash/shelf/shelf_types.h"
10 #include "ash/system/user/login_status.h" 10 #include "ash/system/user/login_status.h"
11 #include "ui/views/widget/widget.h" 11 #include "ui/views/widget/widget.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 class ShellDelegate; 15 class ShellDelegate;
16 class SystemTray; 16 class SystemTray;
17 class WebNotificationTray; 17 class WebNotificationTray;
18 18
19 namespace internal { 19 namespace internal {
20 20
21 class LogoutButtonTray; 21 class LogoutButtonTray;
22 class VirtualKeyboardTray;
22 class StatusAreaWidgetDelegate; 23 class StatusAreaWidgetDelegate;
23 24
24 class ASH_EXPORT StatusAreaWidget : public views::Widget { 25 class ASH_EXPORT StatusAreaWidget : public views::Widget {
25 public: 26 public:
26 static const char kNativeViewName[]; 27 static const char kNativeViewName[];
27 28
28 explicit StatusAreaWidget(aura::Window* status_container); 29 explicit StatusAreaWidget(aura::Window* status_container);
29 virtual ~StatusAreaWidget(); 30 virtual ~StatusAreaWidget();
30 31
31 // Creates the SystemTray, WebNotificationTray and LogoutButtonTray. 32 // Creates the SystemTray, WebNotificationTray and LogoutButtonTray.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // True if any message bubble is shown. 65 // True if any message bubble is shown.
65 bool IsMessageBubbleShown() const; 66 bool IsMessageBubbleShown() const;
66 67
67 // Overridden from views::Widget: 68 // Overridden from views::Widget:
68 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE; 69 virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE;
69 70
70 private: 71 private:
71 void AddSystemTray(); 72 void AddSystemTray();
72 void AddWebNotificationTray(); 73 void AddWebNotificationTray();
73 void AddLogoutButtonTray(); 74 void AddLogoutButtonTray();
75 void AddVirtualKeyboardTray();
74 76
75 // Weak pointers to View classes that are parented to StatusAreaWidget: 77 // Weak pointers to View classes that are parented to StatusAreaWidget:
76 internal::StatusAreaWidgetDelegate* status_area_widget_delegate_; 78 internal::StatusAreaWidgetDelegate* status_area_widget_delegate_;
77 SystemTray* system_tray_; 79 SystemTray* system_tray_;
78 WebNotificationTray* web_notification_tray_; 80 WebNotificationTray* web_notification_tray_;
79 LogoutButtonTray* logout_button_tray_; 81 LogoutButtonTray* logout_button_tray_;
82 VirtualKeyboardTray* virtual_keyboard_tray_;
80 user::LoginStatus login_status_; 83 user::LoginStatus login_status_;
81 84
82 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); 85 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
83 }; 86 };
84 87
85 } // namespace internal 88 } // namespace internal
86 } // namespace ash 89 } // namespace ash
87 90
88 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ 91 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698