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

Side by Side Diff: ash/system/tray/system_tray_item.h

Issue 14756019: Adding new user menu section to the SystemTrayMenu & refactoring of user access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More windows breakages addressed Created 7 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 | 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_TRAY_SYSTEM_TRAY_ITEM_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_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 18 matching lines...) Expand all
29 virtual ~SystemTrayItem(); 29 virtual ~SystemTrayItem();
30 30
31 // Create* functions may return NULL if nothing should be displayed for the 31 // Create* functions may return NULL if nothing should be displayed for the
32 // type of view. The default implementations return NULL. 32 // type of view. The default implementations return NULL.
33 33
34 // Returns a view to be displayed in the system tray. If this returns NULL, 34 // Returns a view to be displayed in the system tray. If this returns NULL,
35 // then this item is not displayed in the tray. 35 // then this item is not displayed in the tray.
36 // NOTE: The returned view should almost always be a TrayItemView, which 36 // NOTE: The returned view should almost always be a TrayItemView, which
37 // automatically resizes the widget when the size of the view changes, and 37 // automatically resizes the widget when the size of the view changes, and
38 // adds animation when the visibility of the view changes. If a view wants to 38 // adds animation when the visibility of the view changes. If a view wants to
39 // avoid these behaviour, then it should not be a TrayItemView. 39 // avoid this behavior, then it should not be a TrayItemView.
40 virtual views::View* CreateTrayView(user::LoginStatus status); 40 virtual views::View* CreateTrayView(user::LoginStatus status);
41 41
42 // Returns a view for the item to be displayed in the list. This view can be 42 // Returns a view for the item to be displayed in the list. This view can be
43 // displayed with a number of other tray items, so this should not be too 43 // displayed with a number of other tray items, so this should not be too
44 // big. 44 // big.
45 virtual views::View* CreateDefaultView(user::LoginStatus status); 45 virtual views::View* CreateDefaultView(user::LoginStatus status);
46 46
47 // Returns a detailed view for the item. This view is displayed standalone. 47 // Returns a detailed view for the item. This view is displayed standalone.
48 virtual views::View* CreateDetailedView(user::LoginStatus status); 48 virtual views::View* CreateDetailedView(user::LoginStatus status);
49 49
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 private: 111 private:
112 SystemTray* system_tray_; 112 SystemTray* system_tray_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); 114 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem);
115 }; 115 };
116 116
117 } // namespace ash 117 } // namespace ash
118 118
119 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 119 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698