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

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

Issue 6902107: Merge 82987, 83304 - make sure that OEM tab is shown even if first login is Guest (Closed) Base URL: svn://svn.chromium.org/chrome/branches/742/src/
Patch Set: Created 9 years, 8 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) 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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 namespace chromeos { 24 namespace chromeos {
25 class AccountScreen; 25 class AccountScreen;
26 class EnterpriseEnrollmentScreen; 26 class EnterpriseEnrollmentScreen;
27 class EulaScreen; 27 class EulaScreen;
28 class ExistingUserController; 28 class ExistingUserController;
29 class HTMLPageScreen; 29 class HTMLPageScreen;
30 class LoginDisplayHost; 30 class LoginDisplayHost;
31 class NetworkScreen; 31 class NetworkScreen;
32 class RegistrationScreen; 32 class RegistrationScreen;
33 class StartupCustomizationDocument;
34 class UpdateScreen; 33 class UpdateScreen;
35 class UserImageScreen; 34 class UserImageScreen;
36 class WizardInProcessBrowserTest; 35 class WizardInProcessBrowserTest;
37 } 36 }
38 37
39 namespace gfx { 38 namespace gfx {
40 class Rect; 39 class Rect;
41 } 40 }
42 41
43 namespace views { 42 namespace views {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // Returns a pointer to the current screen or NULL if there's no such 123 // Returns a pointer to the current screen or NULL if there's no such
125 // screen. 124 // screen.
126 WizardScreen* current_screen() const { return current_screen_; } 125 WizardScreen* current_screen() const { return current_screen_; }
127 126
128 // Overrides observer for testing. 127 // Overrides observer for testing.
129 void set_observer(ScreenObserver* observer) { observer_ = observer; } 128 void set_observer(ScreenObserver* observer) { observer_ = observer; }
130 129
131 // Set URL to open on browser launch. 130 // Set URL to open on browser launch.
132 void set_start_url(const GURL& start_url) { start_url_ = start_url; } 131 void set_start_url(const GURL& start_url) { start_url_ = start_url; }
133 132
134 // Sets partner startup customization. WizardController takes ownership
135 // of the document object.
136 void SetCustomization(
137 const chromeos::StartupCustomizationDocument* customization);
138
139 // Returns partner startup customization document owned by WizardController.
140 const chromeos::StartupCustomizationDocument* GetCustomization() const;
141
142 // If being at register screen proceeds to the next one. 133 // If being at register screen proceeds to the next one.
143 void SkipRegistration(); 134 void SkipRegistration();
144 135
145 // Registers OOBE preferences. 136 // Registers OOBE preferences.
146 static void RegisterPrefs(PrefService* local_state); 137 static void RegisterPrefs(PrefService* local_state);
147 138
148 static const char kNetworkScreenName[]; 139 static const char kNetworkScreenName[];
149 static const char kLoginScreenName[]; 140 static const char kLoginScreenName[];
150 static const char kAccountScreenName[]; 141 static const char kAccountScreenName[];
151 static const char kUpdateScreenName[]; 142 static const char kUpdateScreenName[];
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 258
268 // OOBE/login display host. 259 // OOBE/login display host.
269 chromeos::LoginDisplayHost* host_; 260 chromeos::LoginDisplayHost* host_;
270 261
271 // NULL by default - controller itself is observer. Mock could be assigned. 262 // NULL by default - controller itself is observer. Mock could be assigned.
272 ScreenObserver* observer_; 263 ScreenObserver* observer_;
273 264
274 // Default WizardController. 265 // Default WizardController.
275 static WizardController* default_controller_; 266 static WizardController* default_controller_;
276 267
277 // Partner startup customizations.
278 scoped_ptr<const chromeos::StartupCustomizationDocument> customization_;
279
280 // URL to open on browser launch. 268 // URL to open on browser launch.
281 GURL start_url_; 269 GURL start_url_;
282 270
283 base::OneShotTimer<WizardController> smooth_show_timer_; 271 base::OneShotTimer<WizardController> smooth_show_timer_;
284 272
285 // State of Usage stat/error reporting checkbox on EULA screen 273 // State of Usage stat/error reporting checkbox on EULA screen
286 // during wizard lifetime. 274 // during wizard lifetime.
287 bool usage_statistics_reporting_; 275 bool usage_statistics_reporting_;
288 276
289 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage); 277 FRIEND_TEST_ALL_PREFIXES(WizardControllerTest, SwitchLanguage);
290 friend class WizardControllerFlowTest; 278 friend class WizardControllerFlowTest;
291 friend class chromeos::WizardInProcessBrowserTest; 279 friend class chromeos::WizardInProcessBrowserTest;
292 280
293 DISALLOW_COPY_AND_ASSIGN(WizardController); 281 DISALLOW_COPY_AND_ASSIGN(WizardController);
294 }; 282 };
295 283
296 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 284 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_display_host.h ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698