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

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

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « ash/shell/shelf_delegate_impl.cc ('k') | ash/system/status_area_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // True if any message bubble is shown. 68 // True if any message bubble is shown.
69 bool IsMessageBubbleShown() const; 69 bool IsMessageBubbleShown() const;
70 70
71 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a 71 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a
72 // paint. 72 // paint.
73 void SchedulePaint(); 73 void SchedulePaint();
74 74
75 // Overridden from views::Widget: 75 // Overridden from views::Widget:
76 void OnNativeWidgetActivationChanged(bool active) override; 76 void OnNativeWidgetActivationChanged(bool active) override;
77 void OnMouseEvent(ui::MouseEvent* event) override;
78 void OnGestureEvent(ui::GestureEvent* event) override;
77 79
78 private: 80 private:
79 void AddSystemTray(); 81 void AddSystemTray();
80 void AddWebNotificationTray(); 82 void AddWebNotificationTray();
81 #if defined(OS_CHROMEOS) 83 #if defined(OS_CHROMEOS)
82 void AddLogoutButtonTray(); 84 void AddLogoutButtonTray();
83 void AddVirtualKeyboardTray(); 85 void AddVirtualKeyboardTray();
84 #endif 86 #endif
85 void AddOverviewButtonTray(); 87 void AddOverviewButtonTray();
86 88
87 // Weak pointers to View classes that are parented to StatusAreaWidget: 89 // Weak pointers to View classes that are parented to StatusAreaWidget:
88 StatusAreaWidgetDelegate* status_area_widget_delegate_; 90 StatusAreaWidgetDelegate* status_area_widget_delegate_;
89 OverviewButtonTray* overview_button_tray_; 91 OverviewButtonTray* overview_button_tray_;
90 SystemTray* system_tray_; 92 SystemTray* system_tray_;
91 WebNotificationTray* web_notification_tray_; 93 WebNotificationTray* web_notification_tray_;
92 #if defined(OS_CHROMEOS) 94 #if defined(OS_CHROMEOS)
93 LogoutButtonTray* logout_button_tray_; 95 LogoutButtonTray* logout_button_tray_;
94 VirtualKeyboardTray* virtual_keyboard_tray_; 96 VirtualKeyboardTray* virtual_keyboard_tray_;
95 #endif 97 #endif
96 user::LoginStatus login_status_; 98 user::LoginStatus login_status_;
97 99
98 ShelfWidget* shelf_widget_; 100 ShelfWidget* shelf_widget_;
99 101
100 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); 102 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
101 }; 103 };
102 104
103 } // namespace ash 105 } // namespace ash
104 106
105 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ 107 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_
OLDNEW
« no previous file with comments | « ash/shell/shelf_delegate_impl.cc ('k') | ash/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698