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

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

Issue 1417423003: chrome: Rename WrenchMenuModel to AppMenuModel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/views/toolbar/app_menu_button.cc ('k') | chrome/chrome_browser_ui.gypi » ('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/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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/app_menu_button.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698