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/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) { | 127 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) { |
128 upgrade_notification_stage_ = stage; | 128 upgrade_notification_stage_ = stage; |
129 } | 129 } |
130 | 130 |
131 void set_is_factory_reset_required(bool is_factory_reset_required) { | 131 void set_is_factory_reset_required(bool is_factory_reset_required) { |
132 is_factory_reset_required_ = is_factory_reset_required; | 132 is_factory_reset_required_ = is_factory_reset_required; |
133 } | 133 } |
134 | 134 |
135 private: | 135 private: |
136 FRIEND_TEST_ALL_PREFIXES(WrenchMenuModelTest, Basics); | 136 FRIEND_TEST_ALL_PREFIXES(AppMenuModelTest, Basics); |
137 | 137 |
138 // Initiates an Idle check. See IdleCallback below. | 138 // Initiates an Idle check. See IdleCallback below. |
139 void CheckIdle(); | 139 void CheckIdle(); |
140 | 140 |
141 // The callback for the IdleCheck. Tells us whether Chrome has received any | 141 // The callback for the IdleCheck. Tells us whether Chrome has received any |
142 // input events since the specified time. | 142 // input events since the specified time. |
143 void IdleCallback(ui::IdleState state); | 143 void IdleCallback(ui::IdleState state); |
144 | 144 |
145 // Triggers a global notification of the specified |type|. | 145 // Triggers a global notification of the specified |type|. |
146 void TriggerNotification(chrome::NotificationType type); | 146 void TriggerNotification(chrome::NotificationType type); |
(...skipping 23 matching lines...) Expand all Loading... |
170 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_; | 170 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_; |
171 | 171 |
172 // Whether we have waited long enough after detecting an upgrade (to see | 172 // Whether we have waited long enough after detecting an upgrade (to see |
173 // is we should start nagging about upgrading). | 173 // is we should start nagging about upgrading). |
174 bool notify_upgrade_; | 174 bool notify_upgrade_; |
175 | 175 |
176 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector); | 176 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector); |
177 }; | 177 }; |
178 | 178 |
179 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_ | 179 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_ |
OLD | NEW |