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

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

Issue 2912593002: Create OOBE screen for Voice Interaction value proposition (Closed)
Patch Set: 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 288
285 // Returns true if callback has been installed. 289 // Returns true if callback has been installed.
286 // Returns false if timezone has already been resolved. 290 // Returns false if timezone has already been resolved.
287 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback); 291 bool SetOnTimeZoneResolvedForTesting(const base::Closure& callback);
288 292
289 // Returns true if kHostPairingOobe perf has been set. If it's set, launch the 293 // Returns true if kHostPairingOobe perf has been set. If it's set, launch the
290 // pairing remora OOBE from the beginning no matter an eligible controller is 294 // pairing remora OOBE from the beginning no matter an eligible controller is
291 // detected or not. 295 // detected or not.
292 bool IsRemoraPairingOobe() const; 296 bool IsRemoraPairingOobe() const;
293 297
298 // Returns true if arc terms of service should be shown.
299 bool ShouldShowArcTerms() const;
300
301 // Returns true if voice interaction value prop should be shown.
302 bool ShouldShowVoiceInteractionValueProp() const;
303
294 // Starts listening for an incoming shark controller connection, if we are 304 // Starts listening for an incoming shark controller connection, if we are
295 // running remora OOBE. 305 // running remora OOBE.
296 void MaybeStartListeningForSharkConnection(); 306 void MaybeStartListeningForSharkConnection();
297 307
298 // Called when a connection to controller has been established. Wizard 308 // Called when a connection to controller has been established. Wizard
299 // controller takes the ownership of |pairing_controller| after that call. 309 // controller takes the ownership of |pairing_controller| after that call.
300 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> 310 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController>
301 pairing_controller); 311 pairing_controller);
302 312
303 // Callback functions for AddNetworkRequested(). 313 // Callback functions for AddNetworkRequested().
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 BaseScreen* hid_screen_ = nullptr; 436 BaseScreen* hid_screen_ = nullptr;
427 437
428 base::WeakPtrFactory<WizardController> weak_factory_; 438 base::WeakPtrFactory<WizardController> weak_factory_;
429 439
430 DISALLOW_COPY_AND_ASSIGN(WizardController); 440 DISALLOW_COPY_AND_ASSIGN(WizardController);
431 }; 441 };
432 442
433 } // namespace chromeos 443 } // namespace chromeos
434 444
435 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ 445 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698