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

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

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_HAND LER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_HAND LER_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/values.h"
11 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_ actor.h"
12 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
13
14 namespace chromeos {
15
16 // WebUIMessageHandler implementation which handles events occurring on the
17 // page, such as the user pressing the signin button.
18 class EnterpriseEnrollmentScreenHandler
19 : public BaseScreenHandler,
20 public EnterpriseEnrollmentScreenActor {
21 public:
22 EnterpriseEnrollmentScreenHandler();
23 virtual ~EnterpriseEnrollmentScreenHandler();
24
25 void SetupGaiaStrings();
26
27 // Implements WebUIMessageHandler:
28 virtual void RegisterMessages() OVERRIDE;
29
30 // Implements EnterpriseEnrollmentScreenActor:
31 virtual void SetController(Controller* controller);
32 virtual void PrepareToShow() OVERRIDE;
33 virtual void Show() OVERRIDE;
34 virtual void Hide() OVERRIDE;
35 virtual void SetEditableUser(bool editable) OVERRIDE;
36 virtual void ShowConfirmationScreen() OVERRIDE;
37 virtual void ShowAuthError(const GoogleServiceAuthError& error) OVERRIDE;
38 virtual void ShowAccountError() OVERRIDE;
39 virtual void ShowSerialNumberError() OVERRIDE;
40 virtual void ShowFatalAuthError() OVERRIDE;
41 virtual void ShowFatalEnrollmentError() OVERRIDE;
42 virtual void ShowNetworkEnrollmentError() OVERRIDE;
43
44 // Implements BaseScreenHandler:
45 virtual void GetLocalizedStrings(
46 base::DictionaryValue* localized_strings) OVERRIDE;
47
48 protected:
49 // Implements BaseScreenHandler:
50 virtual void Initialize() OVERRIDE;
51
52 // Keeps the controller for this actor.
53 Controller* controller_;
54
55 private:
56 // Handlers for WebUI messages.
57 void HandleSubmitAuth(const base::ListValue* args);
58 void HandleCancelAuth(const base::ListValue* args);
59 void HandleConfirmationClose(const base::ListValue* args);
60
61 // Display the given i18n string as error message.
62 void ShowError(int message_id);
63 // Updates the gaia login box.
64 void UpdateGaiaLogin(const base::DictionaryValue& args);
65
66 bool editable_user_;
67 bool show_on_init_;
68
69 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentScreenHandler);
70 };
71
72 } // namespace chromeos
73
74 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_H ANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698