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

Side by Side Diff: chrome/browser/chromeos/login/wizard_controller.h

Issue 10832019: Speed up custom wallpaper switching time and wallpaper manager code refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile Created 8 years, 4 months 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 | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Returns true if valid registration URL is defined. 82 // Returns true if valid registration URL is defined.
83 static bool IsRegisterScreenDefined(); 83 static bool IsRegisterScreenDefined();
84 84
85 // Marks device registered. i.e. second part of OOBE is completed. 85 // Marks device registered. i.e. second part of OOBE is completed.
86 static void MarkDeviceRegistered(); 86 static void MarkDeviceRegistered();
87 87
88 // Returns initial locale from local settings. 88 // Returns initial locale from local settings.
89 static std::string GetInitialLocale(); 89 static std::string GetInitialLocale();
90 90
91 // Sets delays to zero. MUST be used only for browser tests.
92 static void SetZeroDelays();
93
91 // If true zero delays have been enabled (for browser tests). 94 // If true zero delays have been enabled (for browser tests).
92 static bool IsZeroDelayEnabled(); 95 static bool IsZeroDelayEnabled();
93 96
94 // Sets initial locale in local settings. 97 // Sets initial locale in local settings.
95 static void SetInitialLocale(const std::string& locale); 98 static void SetInitialLocale(const std::string& locale);
96 99
97 // Registers OOBE preferences. 100 // Registers OOBE preferences.
98 static void RegisterPrefs(PrefService* local_state); 101 static void RegisterPrefs(PrefService* local_state);
99 102
100 // Marks user image screen to be always skipped after login. 103 // Marks user image screen to be always skipped after login.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // Switches from one screen to another with delay before showing. Calling 210 // Switches from one screen to another with delay before showing. Calling
208 // ShowCurrentScreen directly forces screen to be shown immediately. 211 // ShowCurrentScreen directly forces screen to be shown immediately.
209 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing); 212 void SetCurrentScreenSmooth(WizardScreen* screen, bool use_smoothing);
210 213
211 // Changes status area visibility. 214 // Changes status area visibility.
212 void SetStatusAreaVisible(bool visible); 215 void SetStatusAreaVisible(bool visible);
213 216
214 // Logs in the specified user via default login screen. 217 // Logs in the specified user via default login screen.
215 void Login(const std::string& username, const std::string& password); 218 void Login(const std::string& username, const std::string& password);
216 219
217 // Sets delays to zero. MUST be used only for browser tests.
218 static void SetZeroDelays();
219
220 static bool skip_user_image_selection_; 220 static bool skip_user_image_selection_;
221 221
222 static bool zero_delay_enabled_; 222 static bool zero_delay_enabled_;
223 223
224 // Screens. 224 // Screens.
225 scoped_ptr<NetworkScreen> network_screen_; 225 scoped_ptr<NetworkScreen> network_screen_;
226 scoped_ptr<UpdateScreen> update_screen_; 226 scoped_ptr<UpdateScreen> update_screen_;
227 scoped_ptr<UserImageScreen> user_image_screen_; 227 scoped_ptr<UserImageScreen> user_image_screen_;
228 scoped_ptr<EulaScreen> eula_screen_; 228 scoped_ptr<EulaScreen> eula_screen_;
229 scoped_ptr<RegistrationScreen> registration_screen_; 229 scoped_ptr<RegistrationScreen> registration_screen_;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators); 279 FRIEND_TEST_ALL_PREFIXES(WizardControllerFlowTest, Accelerators);
280 friend class WizardControllerFlowTest; 280 friend class WizardControllerFlowTest;
281 friend class WizardInProcessBrowserTest; 281 friend class WizardInProcessBrowserTest;
282 282
283 DISALLOW_COPY_AND_ASSIGN(WizardController); 283 DISALLOW_COPY_AND_ASSIGN(WizardController);
284 }; 284 };
285 285
286 } // namespace chromeos 286 } // namespace chromeos
287 287
288 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 288 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/webui_login_display.cc ('k') | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698