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

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

Issue 2807693002: Make LogoutButtonTray a regular View (Closed)
Patch Set: Rebased 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
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_item.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_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 <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual void DestroyDetailedView(); 94 virtual void DestroyDetailedView();
95 95
96 // Updates the tray view (if applicable) when the user's login status changes. 96 // Updates the tray view (if applicable) when the user's login status changes.
97 // It is not necessary the update the default or detailed view, since the 97 // It is not necessary the update the default or detailed view, since the
98 // default/detailed popup is closed when login status changes. The default 98 // default/detailed popup is closed when login status changes. The default
99 // implementation does nothing. 99 // implementation does nothing.
100 virtual void UpdateAfterLoginStatusChange(LoginStatus status); 100 virtual void UpdateAfterLoginStatusChange(LoginStatus status);
101 101
102 // Updates the tray view (if applicable) when shelf's alignment changes. 102 // Updates the tray view (if applicable) when shelf's alignment changes.
103 // The default implementation does nothing. 103 // The default implementation does nothing.
104 virtual void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); 104 virtual void UpdateAfterShelfAlignmentChange();
105 105
106 // Shows the detailed view for this item. If the main popup for the tray is 106 // Shows the detailed view for this item. If the main popup for the tray is
107 // currently visible, then making this call would use the existing window to 107 // currently visible, then making this call would use the existing window to
108 // display the detailed item. The detailed item will inherit the bounds of the 108 // display the detailed item. The detailed item will inherit the bounds of the
109 // existing window. 109 // existing window.
110 // 110 //
111 // In Material Design the actual transition is intentionally delayed to allow 111 // In Material Design the actual transition is intentionally delayed to allow
112 // the user to perceive the ink drop animation on the clicked target. 112 // the user to perceive the ink drop animation on the clicked target.
113 void TransitionDetailedView(); 113 void TransitionDetailedView();
114 114
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 // Used to delay the transition to the detailed view. 151 // Used to delay the transition to the detailed view.
152 base::OneShotTimer transition_delay_timer_; 152 base::OneShotTimer transition_delay_timer_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem); 154 DISALLOW_COPY_AND_ASSIGN(SystemTrayItem);
155 }; 155 };
156 156
157 } // namespace ash 157 } // namespace ash
158 158
159 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 159 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698