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

Side by Side Diff: chrome/browser/upgrade_detector.h

Issue 2558043006: ash: Use system tray mojo interface to show system update tray icon (Closed)
Patch Set: fix gcc Created 4 years 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 | « chrome/browser/ui/ash/system_tray_delegate_utils.cc ('k') | chrome/test/BUILD.gn » ('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) 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/macros.h" 9 #include "base/macros.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) { 128 void set_upgrade_notification_stage(UpgradeNotificationAnnoyanceLevel stage) {
129 upgrade_notification_stage_ = stage; 129 upgrade_notification_stage_ = stage;
130 } 130 }
131 131
132 void set_is_factory_reset_required(bool is_factory_reset_required) { 132 void set_is_factory_reset_required(bool is_factory_reset_required) {
133 is_factory_reset_required_ = is_factory_reset_required; 133 is_factory_reset_required_ = is_factory_reset_required;
134 } 134 }
135 135
136 private: 136 private:
137 FRIEND_TEST_ALL_PREFIXES(AppMenuModelTest, Basics); 137 FRIEND_TEST_ALL_PREFIXES(AppMenuModelTest, Basics);
138 FRIEND_TEST_ALL_PREFIXES(SystemTrayClientTest, UpdateTrayIcon);
138 139
139 // Initiates an Idle check. See IdleCallback below. 140 // Initiates an Idle check. See IdleCallback below.
140 void CheckIdle(); 141 void CheckIdle();
141 142
142 // The callback for the IdleCheck. Tells us whether Chrome has received any 143 // The callback for the IdleCheck. Tells us whether Chrome has received any
143 // input events since the specified time. 144 // input events since the specified time.
144 void IdleCallback(ui::IdleState state); 145 void IdleCallback(ui::IdleState state);
145 146
146 // Triggers a global notification of the specified |type|. 147 // Triggers a global notification of the specified |type|.
147 void TriggerNotification(chrome::NotificationType type); 148 void TriggerNotification(chrome::NotificationType type);
(...skipping 23 matching lines...) Expand all
171 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_; 172 UpgradeNotificationAnnoyanceLevel upgrade_notification_stage_;
172 173
173 // Whether we have waited long enough after detecting an upgrade (to see 174 // Whether we have waited long enough after detecting an upgrade (to see
174 // is we should start nagging about upgrading). 175 // is we should start nagging about upgrading).
175 bool notify_upgrade_; 176 bool notify_upgrade_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector); 178 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector);
178 }; 179 };
179 180
180 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_ 181 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_utils.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698