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

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

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: merge 2 trunk Created 4 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
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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Shows the notification view for |item|. 77 // Shows the notification view for |item|.
78 void ShowNotificationView(SystemTrayItem* item); 78 void ShowNotificationView(SystemTrayItem* item);
79 79
80 // Hides the notification view for |item|. 80 // Hides the notification view for |item|.
81 void HideNotificationView(SystemTrayItem* item); 81 void HideNotificationView(SystemTrayItem* item);
82 82
83 // Updates the items when the login status of the system changes. 83 // Updates the items when the login status of the system changes.
84 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); 84 void UpdateAfterLoginStatusChange(user::LoginStatus login_status);
85 85
86 // Updates the items when the shelf alignment changes. 86 // Updates the items when the shelf alignment changes.
87 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); 87 void UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment);
88 88
89 // Temporarily hides/unhides the notification bubble. 89 // Temporarily hides/unhides the notification bubble.
90 void SetHideNotifications(bool hidden); 90 void SetHideNotifications(bool hidden);
91 91
92 // Returns true if the shelf should be forced visible when auto-hidden. 92 // Returns true if the shelf should be forced visible when auto-hidden.
93 bool ShouldShowShelf() const; 93 bool ShouldShowShelf() const;
94 94
95 // Returns true if there is a system bubble (already visible or in the process 95 // Returns true if there is a system bubble (already visible or in the process
96 // of being created). 96 // of being created).
97 bool HasSystemBubble() const; 97 bool HasSystemBubble() const;
(...skipping 19 matching lines...) Expand all
117 // Returns view for help button if default view is shown. Returns NULL 117 // Returns view for help button if default view is shown. Returns NULL
118 // otherwise. 118 // otherwise.
119 views::View* GetHelpButtonView() const; 119 views::View* GetHelpButtonView() const;
120 120
121 // Accessors for testing. 121 // Accessors for testing.
122 122
123 // Returns true if the bubble exists. 123 // Returns true if the bubble exists.
124 bool CloseNotificationBubbleForTest() const; 124 bool CloseNotificationBubbleForTest() const;
125 125
126 // Overridden from TrayBackgroundView. 126 // Overridden from TrayBackgroundView.
127 void SetShelfAlignment(ShelfAlignment alignment) override; 127 void SetShelfAlignment(wm::ShelfAlignment alignment) override;
128 void AnchorUpdated() override; 128 void AnchorUpdated() override;
129 base::string16 GetAccessibleNameForTray() override; 129 base::string16 GetAccessibleNameForTray() override;
130 void BubbleResized(const views::TrayBubbleView* bubble_view) override; 130 void BubbleResized(const views::TrayBubbleView* bubble_view) override;
131 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; 131 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override;
132 bool ClickedOutsideBubble() override; 132 bool ClickedOutsideBubble() override;
133 133
134 // Overridden from message_center::TrayBubbleView::Delegate. 134 // Overridden from message_center::TrayBubbleView::Delegate.
135 void BubbleViewDestroyed() override; 135 void BubbleViewDestroyed() override;
136 void OnMouseEnteredView() override; 136 void OnMouseEnteredView() override;
137 void OnMouseExitedView() override; 137 void OnMouseExitedView() override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // A reference to the Screen share and capture item. 242 // A reference to the Screen share and capture item.
243 ScreenTrayItem* screen_capture_tray_item_; // not owned 243 ScreenTrayItem* screen_capture_tray_item_; // not owned
244 ScreenTrayItem* screen_share_tray_item_; // not owned 244 ScreenTrayItem* screen_share_tray_item_; // not owned
245 245
246 DISALLOW_COPY_AND_ASSIGN(SystemTray); 246 DISALLOW_COPY_AND_ASSIGN(SystemTray);
247 }; 247 };
248 248
249 } // namespace ash 249 } // namespace ash
250 250
251 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 251 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698