Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 PopUpDetailedView(int for_seconds, bool activate); |
|
James Cook
2017/03/21 19:57:31
optional: ShowDetailedViewPopup? ShowDetailedViewI
Evan Stade
2017/03/22 20:33:54
a DetailedView implies a popup I suppose, so ShowD
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |