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

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

Issue 15718003: Add SessionStateObserver with ActiveUserChanged() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge & add SessionStateDelegateChromeos Created 7 years, 6 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
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/system/tray/system_tray.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_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/tray/system_tray_bubble.h" 9 #include "ash/system/tray/system_tray_bubble.h"
10 #include "ash/system/tray/tray_background_view.h" 10 #include "ash/system/tray/tray_background_view.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Returns a pointer to the system bubble or NULL if none. 118 // Returns a pointer to the system bubble or NULL if none.
119 internal::SystemTrayBubble* GetSystemBubble(); 119 internal::SystemTrayBubble* GetSystemBubble();
120 120
121 // Returns true if any bubble is visible. 121 // Returns true if any bubble is visible.
122 bool IsAnyBubbleVisible() const; 122 bool IsAnyBubbleVisible() const;
123 123
124 // Returns true if the mouse is inside the notification bubble. 124 // Returns true if the mouse is inside the notification bubble.
125 bool IsMouseInNotificationBubble() const; 125 bool IsMouseInNotificationBubble() const;
126 126
127 // Closes system bubble and returns true if it did exist.
128 bool CloseSystemBubble() const;
129
127 // Accessors for testing. 130 // Accessors for testing.
128 131
129 // Returns true if the bubble exists. 132 // Returns true if the bubble exists.
130 bool CloseSystemBubbleForTest() const;
131 bool CloseNotificationBubbleForTest() const; 133 bool CloseNotificationBubbleForTest() const;
132 134
133 // Overridden from TrayBackgroundView. 135 // Overridden from TrayBackgroundView.
134 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; 136 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE;
135 virtual void AnchorUpdated() OVERRIDE; 137 virtual void AnchorUpdated() OVERRIDE;
136 virtual base::string16 GetAccessibleNameForTray() OVERRIDE; 138 virtual base::string16 GetAccessibleNameForTray() OVERRIDE;
137 virtual void HideBubbleWithView( 139 virtual void HideBubbleWithView(
138 const views::TrayBubbleView* bubble_view) OVERRIDE; 140 const views::TrayBubbleView* bubble_view) OVERRIDE;
139 virtual bool ClickedOutsideBubble() OVERRIDE; 141 virtual bool ClickedOutsideBubble() OVERRIDE;
140 142
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 bool hide_notifications_; 215 bool hide_notifications_;
214 216
215 internal::TrayAccessibility* tray_accessibility_; // not owned 217 internal::TrayAccessibility* tray_accessibility_; // not owned
216 218
217 DISALLOW_COPY_AND_ASSIGN(SystemTray); 219 DISALLOW_COPY_AND_ASSIGN(SystemTray);
218 }; 220 };
219 221
220 } // namespace ash 222 } // namespace ash
221 223
222 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 224 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698