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

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

Issue 2761313003: Update appearance of Wi-Fi toggle notification. (Closed)
Patch Set: one more rename Created 3 years, 9 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_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
6 #define ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 6 #define ASH_COMMON_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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
115 // Pops up the detailed view for this item. An item can request to show its 115 // Pops up the detailed view for this item. An item can request to show its
116 // detailed view using this function (e.g. from an observer callback when 116 // detailed view using this function (e.g. from an observer callback when
117 // something, e.g. volume, network availability etc. changes). If 117 // something, e.g. volume, network availability etc. changes). If
118 // |for_seconds| is non-zero, then the popup is closed after the specified 118 // |for_seconds| is non-zero, then the popup is closed after the specified
119 // time. 119 // time.
120 void PopupDetailedView(int for_seconds, bool activate); 120 void ShowDetailedView(int for_seconds, bool activate);
121 121
122 // Continue showing the currently-shown detailed view, if any, for 122 // Continue showing the currently-shown detailed view, if any, for
123 // |for_seconds| seconds. The caller is responsible for checking that the 123 // |for_seconds| seconds. The caller is responsible for checking that the
124 // currently-shown view is for this item. 124 // currently-shown view is for this item.
125 void SetDetailedViewCloseDelay(int for_seconds); 125 void SetDetailedViewCloseDelay(int for_seconds);
126 126
127 // Hides the detailed view for this item. Disable hiding animation if 127 // Hides the detailed view for this item. Disable hiding animation if
128 // |animate| is false. 128 // |animate| is false.
129 void HideDetailedView(bool animate); 129 void HideDetailedView(bool animate);
130 130
(...skipping 19 matching lines...) Expand all
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_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_ 159 #endif // ASH_COMMON_SYSTEM_TRAY_SYSTEM_TRAY_ITEM_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/tray_caps_lock.cc ('k') | ash/common/system/tray/system_tray_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698