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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Shows the login spinner UI for retail mode logins. 232 // Shows the login spinner UI for retail mode logins.
233 void ShowRetailModeLoginSpinner(); 233 void ShowRetailModeLoginSpinner();
234 234
235 // Sets delegate to be used by the handler. It is guaranteed that valid 235 // Sets delegate to be used by the handler. It is guaranteed that valid
236 // delegate is set before Show() method will be called. 236 // delegate is set before Show() method will be called.
237 void SetDelegate(SigninScreenHandlerDelegate* delegate); 237 void SetDelegate(SigninScreenHandlerDelegate* delegate);
238 238
239 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate); 239 void SetNativeWindowDelegate(NativeWindowDelegate* native_window_delegate);
240 240
241 // NetworkStateInformer::NetworkStateInformerObserver implementation: 241 // NetworkStateInformer::NetworkStateInformerObserver implementation:
242 virtual void OnNetworkReady() OVERRIDE; 242 virtual void OnNetworkReady() override;
243 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) OVERRIDE; 243 virtual void UpdateState(ErrorScreenActor::ErrorReason reason) override;
244 244
245 // Required Local State preferences. 245 // Required Local State preferences.
246 static void RegisterPrefs(PrefRegistrySimple* registry); 246 static void RegisterPrefs(PrefRegistrySimple* registry);
247 247
248 void set_kiosk_enable_flow_aborted_callback_for_test( 248 void set_kiosk_enable_flow_aborted_callback_for_test(
249 const base::Closure& callback) { 249 const base::Closure& callback) {
250 kiosk_enable_flow_aborted_callback_for_test_ = callback; 250 kiosk_enable_flow_aborted_callback_for_test_ = callback;
251 } 251 }
252 252
253 // OobeUI::Observer implemetation. 253 // OobeUI::Observer implemetation.
254 virtual void OnCurrentScreenChanged(OobeUI::Screen current_screen, 254 virtual void OnCurrentScreenChanged(OobeUI::Screen current_screen,
255 OobeUI::Screen new_screen) OVERRIDE; 255 OobeUI::Screen new_screen) override;
256 256
257 // Returns least used user login input method. 257 // Returns least used user login input method.
258 std::string GetUserLRUInputMethod(const std::string& username) const; 258 std::string GetUserLRUInputMethod(const std::string& username) const;
259 259
260 void SetFocusPODCallbackForTesting(base::Closure callback); 260 void SetFocusPODCallbackForTesting(base::Closure callback);
261 261
262 private: 262 private:
263 enum UIState { 263 enum UIState {
264 UI_STATE_UNKNOWN = 0, 264 UI_STATE_UNKNOWN = 0,
265 UI_STATE_GAIA_SIGNIN, 265 UI_STATE_GAIA_SIGNIN,
(...skipping 13 matching lines...) Expand all
279 279
280 void UpdateStateInternal(ErrorScreenActor::ErrorReason reason, 280 void UpdateStateInternal(ErrorScreenActor::ErrorReason reason,
281 bool force_update); 281 bool force_update);
282 void SetupAndShowOfflineMessage(NetworkStateInformer::State state, 282 void SetupAndShowOfflineMessage(NetworkStateInformer::State state,
283 ErrorScreenActor::ErrorReason reason); 283 ErrorScreenActor::ErrorReason reason);
284 void HideOfflineMessage(NetworkStateInformer::State state, 284 void HideOfflineMessage(NetworkStateInformer::State state,
285 ErrorScreenActor::ErrorReason reason); 285 ErrorScreenActor::ErrorReason reason);
286 void ReloadGaia(bool force_reload); 286 void ReloadGaia(bool force_reload);
287 287
288 // BaseScreenHandler implementation: 288 // BaseScreenHandler implementation:
289 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; 289 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) override;
290 virtual void Initialize() OVERRIDE; 290 virtual void Initialize() override;
291 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 291 virtual gfx::NativeWindow GetNativeWindow() override;
292 292
293 // WebUIMessageHandler implementation: 293 // WebUIMessageHandler implementation:
294 virtual void RegisterMessages() OVERRIDE; 294 virtual void RegisterMessages() override;
295 295
296 // LoginDisplayWebUIHandler implementation: 296 // LoginDisplayWebUIHandler implementation:
297 virtual void ClearAndEnablePassword() OVERRIDE; 297 virtual void ClearAndEnablePassword() override;
298 virtual void ClearUserPodPassword() OVERRIDE; 298 virtual void ClearUserPodPassword() override;
299 virtual void OnUserRemoved(const std::string& username) OVERRIDE; 299 virtual void OnUserRemoved(const std::string& username) override;
300 virtual void OnUserImageChanged(const user_manager::User& user) OVERRIDE; 300 virtual void OnUserImageChanged(const user_manager::User& user) override;
301 virtual void OnPreferencesChanged() OVERRIDE; 301 virtual void OnPreferencesChanged() override;
302 virtual void ResetSigninScreenHandlerDelegate() OVERRIDE; 302 virtual void ResetSigninScreenHandlerDelegate() override;
303 virtual void ShowError(int login_attempts, 303 virtual void ShowError(int login_attempts,
304 const std::string& error_text, 304 const std::string& error_text,
305 const std::string& help_link_text, 305 const std::string& help_link_text,
306 HelpAppLauncher::HelpTopic help_topic_id) OVERRIDE; 306 HelpAppLauncher::HelpTopic help_topic_id) override;
307 virtual void ShowGaiaPasswordChanged(const std::string& username) OVERRIDE; 307 virtual void ShowGaiaPasswordChanged(const std::string& username) override;
308 virtual void ShowSigninUI(const std::string& email) OVERRIDE; 308 virtual void ShowSigninUI(const std::string& email) override;
309 virtual void ShowPasswordChangedDialog(bool show_password_error) OVERRIDE; 309 virtual void ShowPasswordChangedDialog(bool show_password_error) override;
310 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) OVERRIDE; 310 virtual void ShowErrorScreen(LoginDisplay::SigninError error_id) override;
311 virtual void ShowSigninScreenForCreds(const std::string& username, 311 virtual void ShowSigninScreenForCreds(const std::string& username,
312 const std::string& password) OVERRIDE; 312 const std::string& password) override;
313 virtual void LoadUsers(const base::ListValue& users_list, 313 virtual void LoadUsers(const base::ListValue& users_list,
314 bool show_guest) OVERRIDE; 314 bool show_guest) override;
315 virtual void SetPublicSessionDisplayName( 315 virtual void SetPublicSessionDisplayName(
316 const std::string& user_id, 316 const std::string& user_id,
317 const std::string& display_name) OVERRIDE; 317 const std::string& display_name) override;
318 virtual void SetPublicSessionLocales( 318 virtual void SetPublicSessionLocales(
319 const std::string& user_id, 319 const std::string& user_id,
320 scoped_ptr<base::ListValue> locales, 320 scoped_ptr<base::ListValue> locales,
321 const std::string& default_locale, 321 const std::string& default_locale,
322 bool multipleRecommendedLocales) OVERRIDE; 322 bool multipleRecommendedLocales) override;
323 323
324 // content::NotificationObserver implementation: 324 // content::NotificationObserver implementation:
325 virtual void Observe(int type, 325 virtual void Observe(int type,
326 const content::NotificationSource& source, 326 const content::NotificationSource& source,
327 const content::NotificationDetails& details) OVERRIDE; 327 const content::NotificationDetails& details) override;
328 328
329 // ScreenlockBridge::LockHandler implementation: 329 // ScreenlockBridge::LockHandler implementation:
330 virtual void ShowBannerMessage(const base::string16& message) OVERRIDE; 330 virtual void ShowBannerMessage(const base::string16& message) override;
331 virtual void ShowUserPodCustomIcon( 331 virtual void ShowUserPodCustomIcon(
332 const std::string& username, 332 const std::string& username,
333 const ScreenlockBridge::UserPodCustomIconOptions& icon) OVERRIDE; 333 const ScreenlockBridge::UserPodCustomIconOptions& icon) override;
334 virtual void HideUserPodCustomIcon(const std::string& username) OVERRIDE; 334 virtual void HideUserPodCustomIcon(const std::string& username) override;
335 virtual void EnableInput() OVERRIDE; 335 virtual void EnableInput() override;
336 virtual void SetAuthType(const std::string& username, 336 virtual void SetAuthType(const std::string& username,
337 ScreenlockBridge::LockHandler::AuthType auth_type, 337 ScreenlockBridge::LockHandler::AuthType auth_type,
338 const base::string16& initial_value) OVERRIDE; 338 const base::string16& initial_value) override;
339 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType( 339 virtual ScreenlockBridge::LockHandler::AuthType GetAuthType(
340 const std::string& username) const OVERRIDE; 340 const std::string& username) const override;
341 virtual void Unlock(const std::string& user_email) OVERRIDE; 341 virtual void Unlock(const std::string& user_email) override;
342 virtual void AttemptEasySignin(const std::string& user_email, 342 virtual void AttemptEasySignin(const std::string& user_email,
343 const std::string& secret, 343 const std::string& secret,
344 const std::string& key_label) OVERRIDE; 344 const std::string& key_label) override;
345 345
346 // TouchViewControllerDelegate::Observer implementation: 346 // TouchViewControllerDelegate::Observer implementation:
347 virtual void OnMaximizeModeStarted() OVERRIDE; 347 virtual void OnMaximizeModeStarted() override;
348 virtual void OnMaximizeModeEnded() OVERRIDE; 348 virtual void OnMaximizeModeEnded() override;
349 349
350 // Updates authentication extension. Called when device settings that affect 350 // Updates authentication extension. Called when device settings that affect
351 // sign-in (allow BWSI and allow whitelist) are changed. 351 // sign-in (allow BWSI and allow whitelist) are changed.
352 void UserSettingsChanged(); 352 void UserSettingsChanged();
353 void UpdateAddButtonStatus(); 353 void UpdateAddButtonStatus();
354 354
355 // Restore input focus to current user pod. 355 // Restore input focus to current user pod.
356 void RefocusCurrentPod(); 356 void RefocusCurrentPod();
357 357
358 // WebUI message handlers. 358 // WebUI message handlers.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 // |state| indicates that enrollment is not applicable. 448 // |state| indicates that enrollment is not applicable.
449 void ContinueKioskEnableFlow(policy::AutoEnrollmentState state); 449 void ContinueKioskEnableFlow(policy::AutoEnrollmentState state);
450 450
451 // Shows signin. 451 // Shows signin.
452 void OnShowAddUser(); 452 void OnShowAddUser();
453 453
454 GaiaScreenHandler::FrameState FrameState() const; 454 GaiaScreenHandler::FrameState FrameState() const;
455 net::Error FrameError() const; 455 net::Error FrameError() const;
456 456
457 // input_method::ImeKeyboard::Observer implementation: 457 // input_method::ImeKeyboard::Observer implementation:
458 virtual void OnCapsLockChanged(bool enabled) OVERRIDE; 458 virtual void OnCapsLockChanged(bool enabled) override;
459 459
460 // Returns OobeUI object of NULL. 460 // Returns OobeUI object of NULL.
461 OobeUI* GetOobeUI() const; 461 OobeUI* GetOobeUI() const;
462 462
463 // Gets the easy unlock service associated with the user. Can return NULL if 463 // Gets the easy unlock service associated with the user. Can return NULL if
464 // user cannot be found, or there is not associated service. 464 // user cannot be found, or there is not associated service.
465 EasyUnlockService* GetEasyUnlockServiceForUser( 465 EasyUnlockService* GetEasyUnlockServiceForUser(
466 const std::string& username) const; 466 const std::string& username) const;
467 467
468 // Current UI state of the signin screen. 468 // Current UI state of the signin screen.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 bool oobe_ui_observer_added_; 537 bool oobe_ui_observer_added_;
538 538
539 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; 539 base::WeakPtrFactory<SigninScreenHandler> weak_factory_;
540 540
541 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); 541 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler);
542 }; 542 };
543 543
544 } // namespace chromeos 544 } // namespace chromeos
545 545
546 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ 546 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698