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

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

Issue 2912593002: Create OOBE screen for Voice Interaction value proposition (Closed)
Patch Set: Create OOBE screen for Voice Interaction value proposition Created 3 years, 6 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
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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void ShowArcTermsOfServiceScreen(); 145 void ShowArcTermsOfServiceScreen();
146 void ShowWrongHWIDScreen(); 146 void ShowWrongHWIDScreen();
147 void ShowAutoEnrollmentCheckScreen(); 147 void ShowAutoEnrollmentCheckScreen();
148 void ShowSupervisedUserCreationScreen(); 148 void ShowSupervisedUserCreationScreen();
149 void ShowArcKioskSplashScreen(); 149 void ShowArcKioskSplashScreen();
150 void ShowHIDDetectionScreen(); 150 void ShowHIDDetectionScreen();
151 void ShowControllerPairingScreen(); 151 void ShowControllerPairingScreen();
152 void ShowHostPairingScreen(); 152 void ShowHostPairingScreen();
153 void ShowDeviceDisabledScreen(); 153 void ShowDeviceDisabledScreen();
154 void ShowEncryptionMigrationScreen(); 154 void ShowEncryptionMigrationScreen();
155 void ShowVoiceInteractionValuePropScreen();
155 156
156 // Shows images login screen. 157 // Shows images login screen.
157 void ShowLoginScreen(const LoginScreenContext& context); 158 void ShowLoginScreen(const LoginScreenContext& context);
158 159
159 // Exit handlers: 160 // Exit handlers:
160 void OnHIDDetectionCompleted(); 161 void OnHIDDetectionCompleted();
161 void OnNetworkConnected(); 162 void OnNetworkConnected();
162 void OnNetworkOffline(); 163 void OnNetworkOffline();
163 void OnConnectionFailed(); 164 void OnConnectionFailed();
164 void OnUpdateCompleted(); 165 void OnUpdateCompleted();
165 void OnEulaAccepted(); 166 void OnEulaAccepted();
166 void OnUpdateErrorCheckingForUpdate(); 167 void OnUpdateErrorCheckingForUpdate();
167 void OnUpdateErrorUpdating(bool is_critical_update); 168 void OnUpdateErrorUpdating(bool is_critical_update);
168 void OnUserImageSelected(); 169 void OnUserImageSelected();
169 void OnUserImageSkipped(); 170 void OnUserImageSkipped();
170 void OnEnrollmentDone(); 171 void OnEnrollmentDone();
171 void OnAutoEnrollmentDone(); 172 void OnAutoEnrollmentDone();
172 void OnDeviceModificationCanceled(); 173 void OnDeviceModificationCanceled();
173 void OnKioskAutolaunchCanceled(); 174 void OnKioskAutolaunchCanceled();
174 void OnKioskAutolaunchConfirmed(); 175 void OnKioskAutolaunchConfirmed();
175 void OnKioskEnableCompleted(); 176 void OnKioskEnableCompleted();
176 void OnWrongHWIDWarningSkipped(); 177 void OnWrongHWIDWarningSkipped();
177 void OnTermsOfServiceDeclined(); 178 void OnTermsOfServiceDeclined();
178 void OnTermsOfServiceAccepted(); 179 void OnTermsOfServiceAccepted();
179 void OnArcTermsOfServiceFinished(); 180 void OnArcTermsOfServiceFinished();
181 void OnVoiceInteractionValuePropSkipped();
182 void OnVoiceInteractionValuePropAccepted();
180 void OnControllerPairingFinished(); 183 void OnControllerPairingFinished();
181 void OnAutoEnrollmentCheckCompleted(); 184 void OnAutoEnrollmentCheckCompleted();
185 void OnOobeFlowFinished();
182 186
183 // Callback invoked once it has been determined whether the device is disabled 187 // Callback invoked once it has been determined whether the device is disabled
184 // or not. 188 // or not.
185 void OnDeviceDisabledChecked(bool device_disabled); 189 void OnDeviceDisabledChecked(bool device_disabled);
186 190
187 // Callback function after setting MetricsReporting. 191 // Callback function after setting MetricsReporting.
188 void OnChangedMetricsReportingState(bool enabled); 192 void OnChangedMetricsReportingState(bool enabled);
189 193
190 // Loads brand code on I/O enabled thread and stores to Local State. 194 // Loads brand code on I/O enabled thread and stores to Local State.
191 void LoadBrandCodeFromFile(); 195 void LoadBrandCodeFromFile();
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 289
286 // Returns true if callback has been installed. 290 // Returns true if callback has been installed.
287 // Returns false if timezone has already been resolved. 291 // Returns false if timezone has already been resolved.
288 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback); 292 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback);
289 293
290 // Returns true if kHostPairingOobe perf has been set. If it's set, launch the 294 // Returns true if kHostPairingOobe perf has been set. If it's set, launch the
291 // pairing remora OOBE from the beginning no matter an eligible controller is 295 // pairing remora OOBE from the beginning no matter an eligible controller is
292 // detected or not. 296 // detected or not.
293 bool IsRemoraPairingOobe() const; 297 bool IsRemoraPairingOobe() const;
294 298
299 // Returns true if arc terms of service should be shown.
300 bool ShouldShowArcTerms() const;
301
302 // Returns true if voice interaction value prop should be shown.
303 bool ShouldShowVoiceInteractionValueProp() const;
304
295 // Starts listening for an incoming shark controller connection, if we are 305 // Starts listening for an incoming shark controller connection, if we are
296 // running remora OOBE. 306 // running remora OOBE.
297 void MaybeStartListeningForSharkConnection(); 307 void MaybeStartListeningForSharkConnection();
298 308
299 // Called when a connection to controller has been established. Wizard 309 // Called when a connection to controller has been established. Wizard
300 // controller takes the ownership of |pairing_controller| after that call. 310 // controller takes the ownership of |pairing_controller| after that call.
301 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> 311 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController>
302 pairing_controller); 312 pairing_controller);
303 313
304 // Callback functions for AddNetworkRequested(). 314 // Callback functions for AddNetworkRequested().
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 BaseScreen* hid_screen_ = nullptr; 437 BaseScreen* hid_screen_ = nullptr;
428 438
429 base::WeakPtrFactory<WizardController> weak_factory_; 439 base::WeakPtrFactory<WizardController> weak_factory_;
430 440
431 DISALLOW_COPY_AND_ASSIGN(WizardController); 441 DISALLOW_COPY_AND_ASSIGN(WizardController);
432 }; 442 };
433 443
434 } // namespace chromeos 444 } // namespace chromeos
435 445
436 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 446 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698