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

Side by Side Diff: chrome/browser/chromeos/login/screens/error_screen.h

Issue 647043004: WizardScreen is merged to BaseScreen. (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) 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_SCREENS_ERROR_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/chromeos/login/auth/login_performer.h" 12 #include "chrome/browser/chromeos/login/auth/login_performer.h"
13 #include "chrome/browser/chromeos/login/screens/base_screen.h"
13 #include "chrome/browser/chromeos/login/screens/error_screen_actor_delegate.h" 14 #include "chrome/browser/chromeos/login/screens/error_screen_actor_delegate.h"
14 #include "chrome/browser/chromeos/login/screens/wizard_screen.h"
15 #include "chrome/browser/chromeos/login/ui/oobe_display.h" 15 #include "chrome/browser/chromeos/login/ui/oobe_display.h"
16 #include "chrome/browser/chromeos/settings/device_settings_service.h" 16 #include "chrome/browser/chromeos/settings/device_settings_service.h"
17 17
18 namespace chromeos { 18 namespace chromeos {
19 19
20 class ScreenObserver; 20 class ScreenObserver;
21 21
22 // Controller for the error screen. 22 // Controller for the error screen.
23 class ErrorScreen : public WizardScreen, 23 class ErrorScreen : public BaseScreen,
24 public ErrorScreenActorDelegate, 24 public ErrorScreenActorDelegate,
25 public LoginPerformer::Delegate { 25 public LoginPerformer::Delegate {
26 public: 26 public:
27 enum UIState { 27 enum UIState {
28 UI_STATE_UNKNOWN = 0, 28 UI_STATE_UNKNOWN = 0,
29 UI_STATE_UPDATE, 29 UI_STATE_UPDATE,
30 UI_STATE_SIGNIN, 30 UI_STATE_SIGNIN,
31 UI_STATE_SUPERVISED, 31 UI_STATE_SUPERVISED,
32 UI_STATE_KIOSK_MODE, 32 UI_STATE_KIOSK_MODE,
33 UI_STATE_LOCAL_STATE_ERROR, 33 UI_STATE_LOCAL_STATE_ERROR,
34 UI_STATE_AUTO_ENROLLMENT_ERROR, 34 UI_STATE_AUTO_ENROLLMENT_ERROR,
35 UI_STATE_ROLLBACK_ERROR, 35 UI_STATE_ROLLBACK_ERROR,
36 }; 36 };
37 37
38 enum ErrorState { 38 enum ErrorState {
39 ERROR_STATE_UNKNOWN = 0, 39 ERROR_STATE_UNKNOWN = 0,
40 ERROR_STATE_PORTAL, 40 ERROR_STATE_PORTAL,
41 ERROR_STATE_OFFLINE, 41 ERROR_STATE_OFFLINE,
42 ERROR_STATE_PROXY, 42 ERROR_STATE_PROXY,
43 ERROR_STATE_AUTH_EXT_TIMEOUT, 43 ERROR_STATE_AUTH_EXT_TIMEOUT,
44 ERROR_STATE_KIOSK_ONLINE 44 ERROR_STATE_KIOSK_ONLINE
45 }; 45 };
46 46
47 ErrorScreen(ScreenObserver* screen_observer, ErrorScreenActor* actor); 47 ErrorScreen(ScreenObserver* screen_observer, ErrorScreenActor* actor);
48 virtual ~ErrorScreen(); 48 virtual ~ErrorScreen();
49 49
50 // WizardScreen implementation. 50 // BaseScreen implementation.
51 virtual void PrepareToShow() override; 51 virtual void PrepareToShow() override;
52 virtual void Show() override; 52 virtual void Show() override;
53 virtual void Hide() override; 53 virtual void Hide() override;
54 virtual std::string GetName() const override; 54 virtual std::string GetName() const override;
55 55
56 // ErrorScreenActorDelegate implementation: 56 // ErrorScreenActorDelegate implementation:
57 virtual void OnErrorShow() override; 57 virtual void OnErrorShow() override;
58 virtual void OnErrorHide() override; 58 virtual void OnErrorHide() override;
59 virtual void OnLaunchOobeGuestSession() override; 59 virtual void OnLaunchOobeGuestSession() override;
60 virtual void OnActorDestroyed() override; 60 virtual void OnActorDestroyed() override;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 scoped_ptr<LoginPerformer> guest_login_performer_; 111 scoped_ptr<LoginPerformer> guest_login_performer_;
112 112
113 base::WeakPtrFactory<ErrorScreen> weak_factory_; 113 base::WeakPtrFactory<ErrorScreen> weak_factory_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(ErrorScreen); 115 DISALLOW_COPY_AND_ASSIGN(ErrorScreen);
116 }; 116 };
117 117
118 } // namespace chromeos 118 } // namespace chromeos
119 119
120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_ 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ERROR_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698