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

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

Issue 8395042: [cros,de-hack] Get rid of singleton for the WebUILoginScreen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comment nit 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_OOBE_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/login/oobe_display.h" 9 #include "chrome/browser/chromeos/login/oobe_display.h"
10 #include "chrome/browser/ui/webui/chrome_web_ui.h" 10 #include "chrome/browser/ui/webui/chrome_web_ui.h"
11 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 } 14 }
15 15
16 namespace chromeos { 16 namespace chromeos {
17 class BaseScreenHandler; 17 class BaseScreenHandler;
18 class CoreOobeHandler; 18 class CoreOobeHandler;
19 class SigninScreenHandler; 19 class SigninScreenHandler;
20 class SigninScreenHandlerDelegate;
20 } 21 }
21 22
22 namespace chromeos { 23 namespace chromeos {
23 24
24 // A custom WebUI that defines datasource for out-of-box-experience (OOBE) UI: 25 // A custom WebUI that defines datasource for out-of-box-experience (OOBE) UI:
25 // - welcome screen (setup language/keyboard/network). 26 // - welcome screen (setup language/keyboard/network).
26 // - eula screen (CrOS (+ OEM) EULA content/TPM password/crash reporting). 27 // - eula screen (CrOS (+ OEM) EULA content/TPM password/crash reporting).
27 // - update screen. 28 // - update screen.
28 class OobeUI : public OobeDisplay, 29 class OobeUI : public OobeDisplay,
29 public ChromeWebUI { 30 public ChromeWebUI {
(...skipping 15 matching lines...) Expand all
45 // Collects localized strings from the owned handlers. 46 // Collects localized strings from the owned handlers.
46 void GetLocalizedStrings(base::DictionaryValue* localized_strings); 47 void GetLocalizedStrings(base::DictionaryValue* localized_strings);
47 48
48 // Initializes the handlers. 49 // Initializes the handlers.
49 void InitializeHandlers(); 50 void InitializeHandlers();
50 51
51 // Shows or hides OOBE UI elements. 52 // Shows or hides OOBE UI elements.
52 void ShowOobeUI(bool show); 53 void ShowOobeUI(bool show);
53 54
54 // Shows the signin screen. 55 // Shows the signin screen.
55 void ShowSigninScreen(); 56 void ShowSigninScreen(SigninScreenHandlerDelegate* delegate);
56 57
57 // Called when the login main frame has been rendered. 58 // Called when the login main frame has been rendered.
58 void OnLoginPromptVisible(); 59 void OnLoginPromptVisible();
59 60
60 private: 61 private:
61 void AddScreenHandler(BaseScreenHandler* handler); 62 void AddScreenHandler(BaseScreenHandler* handler);
62 63
63 // Reference to CoreOobeHandler that handles common requests of Oobe page. 64 // Reference to CoreOobeHandler that handles common requests of Oobe page.
64 CoreOobeHandler* core_handler_; 65 CoreOobeHandler* core_handler_;
65 66
66 // Screens actors. Note, OobeUI owns them via |handlers_|, not directly here. 67 // Screens actors. Note, OobeUI owns them via |handlers_|, not directly here.
67 UpdateScreenActor* update_screen_actor_; 68 UpdateScreenActor* update_screen_actor_;
68 NetworkScreenActor* network_screen_actor_; 69 NetworkScreenActor* network_screen_actor_;
69 EulaScreenActor* eula_screen_actor_; 70 EulaScreenActor* eula_screen_actor_;
70 EnterpriseEnrollmentScreenActor* enterprise_enrollment_screen_actor_; 71 EnterpriseEnrollmentScreenActor* enterprise_enrollment_screen_actor_;
71 72
72 // Reference to SigninScreenHandler that handles sign-in screen requrests and 73 // Reference to SigninScreenHandler that handles sign-in screen requrests and
73 // forward calls from native code to JS side. 74 // forward calls from native code to JS side.
74 SigninScreenHandler* signin_screen_handler_; 75 SigninScreenHandler* signin_screen_handler_;
75 UserImageScreenActor* user_image_screen_actor_; 76 UserImageScreenActor* user_image_screen_actor_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(OobeUI); 78 DISALLOW_COPY_AND_ASSIGN(OobeUI);
78 }; 79 };
79 80
80 } // namespace chromeos 81 } // namespace chromeos
81 82
82 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 83 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/network_dropdown_handler.cc ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698