Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_UPGRADE_DETECTOR_H_ | 5 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_H_ |
| 6 #define CHROME_BROWSER_UPGRADE_DETECTOR_H_ | 6 #define CHROME_BROWSER_UPGRADE_DETECTOR_H_ |
| 7 | 7 |
| 8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "ui/base/idle/idle.h" | 10 #include "ui/base/idle/idle.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 | 125 |
| 126 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) { | 126 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) { |
| 127 upgrade_notification_stage_ = stage; | 127 upgrade_notification_stage_ = stage; |
| 128 } | 128 } |
| 129 | 129 |
| 130 void set_is_factory_reset_required(bool is_factory_reset_required) { | 130 void set_is_factory_reset_required(bool is_factory_reset_required) { |
| 131 is_factory_reset_required_ = is_factory_reset_required; | 131 is_factory_reset_required_ = is_factory_reset_required; |
| 132 } | 132 } |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 FRIEND_TEST_ALL_PREFIXES(WrenchMenuModelTest, Basics); | |
|
msw
2015/04/23 22:06:42
Why does this need to be a friend test? It looks l
Lei Zhang
2015/04/23 22:08:22
The methods are protected, not public.
msw
2015/04/23 22:11:28
Ah, missed that, sorry!
Albert Bodenhamer
2015/04/23 22:26:48
Yep. Protected. There were a bunch of ways to go h
| |
| 136 | |
| 135 // Initiates an Idle check. See IdleCallback below. | 137 // Initiates an Idle check. See IdleCallback below. |
| 136 void CheckIdle(); | 138 void CheckIdle(); |
| 137 | 139 |
| 138 // The callback for the IdleCheck. Tells us whether Chrome has received any | 140 // The callback for the IdleCheck. Tells us whether Chrome has received any |
| 139 // input events since the specified time. | 141 // input events since the specified time. |
| 140 void IdleCallback(ui::IdleState state); | 142 void IdleCallback(ui::IdleState state); |
| 141 | 143 |
| 142 // Triggers a global notification of the specified |type|. | 144 // Triggers a global notification of the specified |type|. |
| 143 void TriggerNotification(chrome::NotificationType type); | 145 void TriggerNotification(chrome::NotificationType type); |
| 144 | 146 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 167 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_; | 169 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_; |
| 168 | 170 |
| 169 // Whether we have waited long enough after detecting an upgrade (to see | 171 // Whether we have waited long enough after detecting an upgrade (to see |
| 170 // is we should start nagging about upgrading). | 172 // is we should start nagging about upgrading). |
| 171 bool notify_upgrade_; | 173 bool notify_upgrade_; |
| 172 | 174 |
| 173 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector); | 175 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector); |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_ | 178 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_ |
| OLD | NEW |