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

Side by Side Diff: ash/system/tray/system_tray.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/status_area_widget_delegate.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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void SetDetailedViewCloseDelay(int close_delay); 79 void SetDetailedViewCloseDelay(int close_delay);
80 80
81 // Hides the detailed view for |item|. If |animate| is false, disable 81 // Hides the detailed view for |item|. If |animate| is false, disable
82 // the hiding animation for hiding |item|. 82 // the hiding animation for hiding |item|.
83 void HideDetailedView(SystemTrayItem* item, bool animate); 83 void HideDetailedView(SystemTrayItem* item, bool animate);
84 84
85 // Updates the items when the login status of the system changes. 85 // Updates the items when the login status of the system changes.
86 void UpdateAfterLoginStatusChange(LoginStatus login_status); 86 void UpdateAfterLoginStatusChange(LoginStatus login_status);
87 87
88 // Updates the items when the shelf alignment changes. 88 // Updates the items when the shelf alignment changes.
89 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); 89 void UpdateItemsAfterShelfAlignmentChange();
90 90
91 // Returns true if the shelf should be forced visible when auto-hidden. 91 // Returns true if the shelf should be forced visible when auto-hidden.
92 bool ShouldShowShelf() const; 92 bool ShouldShowShelf() const;
93 93
94 // Returns true if there is a system bubble (already visible or in the process 94 // Returns true if there is a system bubble (already visible or in the process
95 // of being created). 95 // of being created).
96 bool HasSystemBubble() const; 96 bool HasSystemBubble() const;
97 97
98 // Returns true if the system_bubble_ exists and is of type |type|. 98 // Returns true if the system_bubble_ exists and is of type |type|.
99 bool HasSystemBubbleType(SystemTrayBubble::BubbleType type); 99 bool HasSystemBubbleType(SystemTrayBubble::BubbleType type);
100 100
101 // Returns a pointer to the system bubble or NULL if none. 101 // Returns a pointer to the system bubble or NULL if none.
102 SystemTrayBubble* GetSystemBubble(); 102 SystemTrayBubble* GetSystemBubble();
103 103
104 // Returns true if system bubble is visible. 104 // Returns true if system bubble is visible.
105 bool IsSystemBubbleVisible() const; 105 bool IsSystemBubbleVisible() const;
106 106
107 // Closes system bubble and returns true if it did exist. 107 // Closes system bubble and returns true if it did exist.
108 bool CloseSystemBubble() const; 108 bool CloseSystemBubble() const;
109 109
110 // Returns view for help button if default view is shown. Returns NULL 110 // Returns view for help button if default view is shown. Returns NULL
111 // otherwise. 111 // otherwise.
112 views::View* GetHelpButtonView() const; 112 views::View* GetHelpButtonView() const;
113 113
114 // Returns TrayAudio object if present or null otherwise. 114 // Returns TrayAudio object if present or null otherwise.
115 TrayAudio* GetTrayAudio() const; 115 TrayAudio* GetTrayAudio() const;
116 116
117 // Overridden from TrayBackgroundView. 117 // Overridden from TrayBackgroundView.
118 void SetShelfAlignment(ShelfAlignment alignment) override; 118 void UpdateAfterShelfAlignmentChange() override;
119 void AnchorUpdated() override; 119 void AnchorUpdated() override;
120 base::string16 GetAccessibleNameForTray() override; 120 base::string16 GetAccessibleNameForTray() override;
121 void BubbleResized(const views::TrayBubbleView* bubble_view) override; 121 void BubbleResized(const views::TrayBubbleView* bubble_view) override;
122 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; 122 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override;
123 void ClickedOutsideBubble() override; 123 void ClickedOutsideBubble() override;
124 124
125 // views::TrayBubbleView::Delegate: 125 // views::TrayBubbleView::Delegate:
126 void BubbleViewDestroyed() override; 126 void BubbleViewDestroyed() override;
127 void OnMouseEnteredView() override; 127 void OnMouseEnteredView() override;
128 void OnMouseExitedView() override; 128 void OnMouseExitedView() override;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 std::unique_ptr<KeyEventWatcher> key_event_watcher_; 241 std::unique_ptr<KeyEventWatcher> key_event_watcher_;
242 242
243 std::unique_ptr<ActivationObserver> activation_observer_; 243 std::unique_ptr<ActivationObserver> activation_observer_;
244 244
245 DISALLOW_COPY_AND_ASSIGN(SystemTray); 245 DISALLOW_COPY_AND_ASSIGN(SystemTray);
246 }; 246 };
247 247
248 } // namespace ash 248 } // namespace ash
249 249
250 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 250 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/status_area_widget_delegate.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698