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

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

Issue 9188056: Start splitting out WebUI into an implementation class and an interface that each page implements... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | Annotate | Revision Log
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 "content/browser/webui/web_ui.h" 10 #include "content/browser/webui/web_ui.h"
11 #include "content/public/browser/web_ui_controller.h"
11 12
12 namespace base { 13 namespace base {
13 class DictionaryValue; 14 class DictionaryValue;
14 } 15 }
15 16
16 namespace chromeos { 17 namespace chromeos {
17 class BaseScreenHandler; 18 class BaseScreenHandler;
18 class CoreOobeHandler; 19 class CoreOobeHandler;
19 class SigninScreenHandler; 20 class SigninScreenHandler;
20 class SigninScreenHandlerDelegate; 21 class SigninScreenHandlerDelegate;
21 } 22 }
22 23
23 namespace chromeos { 24 namespace chromeos {
24 25
25 // A custom WebUI that defines datasource for out-of-box-experience (OOBE) UI: 26 // A custom WebUI that defines datasource for out-of-box-experience (OOBE) UI:
26 // - welcome screen (setup language/keyboard/network). 27 // - welcome screen (setup language/keyboard/network).
27 // - eula screen (CrOS (+ OEM) EULA content/TPM password/crash reporting). 28 // - eula screen (CrOS (+ OEM) EULA content/TPM password/crash reporting).
28 // - update screen. 29 // - update screen.
29 class OobeUI : public OobeDisplay, 30 class OobeUI : public OobeDisplay,
30 public WebUI { 31 public WebUI, public content::WebUIController {
31 public: 32 public:
32 explicit OobeUI(content::WebContents* contents); 33 explicit OobeUI(content::WebContents* contents);
33 34
34 // OobeDisplay implementation: 35 // OobeDisplay implementation:
35 virtual void ShowScreen(WizardScreen* screen) OVERRIDE; 36 virtual void ShowScreen(WizardScreen* screen) OVERRIDE;
36 virtual void HideScreen(WizardScreen* screen) OVERRIDE; 37 virtual void HideScreen(WizardScreen* screen) OVERRIDE;
37 virtual UpdateScreenActor* GetUpdateScreenActor() OVERRIDE; 38 virtual UpdateScreenActor* GetUpdateScreenActor() OVERRIDE;
38 virtual NetworkScreenActor* GetNetworkScreenActor() OVERRIDE; 39 virtual NetworkScreenActor* GetNetworkScreenActor() OVERRIDE;
39 virtual EulaScreenActor* GetEulaScreenActor() OVERRIDE; 40 virtual EulaScreenActor* GetEulaScreenActor() OVERRIDE;
40 virtual EnterpriseEnrollmentScreenActor* GetEnterpriseEnrollmentScreenActor() 41 virtual EnterpriseEnrollmentScreenActor* GetEnterpriseEnrollmentScreenActor()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // forward calls from native code to JS side. 78 // forward calls from native code to JS side.
78 SigninScreenHandler* signin_screen_handler_; 79 SigninScreenHandler* signin_screen_handler_;
79 UserImageScreenActor* user_image_screen_actor_; 80 UserImageScreenActor* user_image_screen_actor_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(OobeUI); 82 DISALLOW_COPY_AND_ASSIGN(OobeUI);
82 }; 83 };
83 84
84 } // namespace chromeos 85 } // namespace chromeos
85 86
86 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_ 87 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.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