OLD | NEW |
---|---|
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 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 10 matching lines...) Expand all Loading... | |
21 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 21 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
22 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 22 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
23 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" | 23 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" |
24 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h" | 24 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h" |
25 #include "chrome/browser/ui/webui/chromeos/login/eula_screen_handler.h" | 25 #include "chrome/browser/ui/webui/chromeos/login/eula_screen_handler.h" |
26 #include "chrome/browser/ui/webui/chromeos/login/network_dropdown_handler.h" | 26 #include "chrome/browser/ui/webui/chromeos/login/network_dropdown_handler.h" |
27 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" | 27 #include "chrome/browser/ui/webui/chromeos/login/network_screen_handler.h" |
28 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 28 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
29 #include "chrome/browser/ui/webui/chromeos/login/update_screen_handler.h" | 29 #include "chrome/browser/ui/webui/chromeos/login/update_screen_handler.h" |
30 #include "chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h" | 30 #include "chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.h" |
31 #include "chrome/browser/ui/webui/options/chromeos/user_image_source.h" | 31 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h" |
32 #include "chrome/browser/ui/webui/theme_source.h" | 32 #include "chrome/browser/ui/webui/theme_source.h" |
33 #include "chrome/common/jstemplate_builder.h" | 33 #include "chrome/common/jstemplate_builder.h" |
34 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
35 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
36 #include "content/public/browser/web_ui.h" | 36 #include "content/public/browser/web_ui.h" |
37 #include "grit/browser_resources.h" | 37 #include "grit/browser_resources.h" |
38 #include "ui/base/resource/resource_bundle.h" | 38 #include "ui/base/resource/resource_bundle.h" |
39 | 39 |
40 using content::WebContents; | 40 using content::WebContents; |
41 | 41 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
163 // Set up the chrome://terms/ data source, for EULA content. | 163 // Set up the chrome://terms/ data source, for EULA content. |
164 AboutUIHTMLSource* about_source = | 164 AboutUIHTMLSource* about_source = |
165 new AboutUIHTMLSource(chrome::kChromeUITermsHost, profile); | 165 new AboutUIHTMLSource(chrome::kChromeUITermsHost, profile); |
166 profile->GetChromeURLDataManager()->AddDataSource(about_source); | 166 profile->GetChromeURLDataManager()->AddDataSource(about_source); |
167 | 167 |
168 // Set up the chrome://oobe/ source. | 168 // Set up the chrome://oobe/ source. |
169 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings); | 169 OobeUIHTMLSource* html_source = new OobeUIHTMLSource(localized_strings); |
170 profile->GetChromeURLDataManager()->AddDataSource(html_source); | 170 profile->GetChromeURLDataManager()->AddDataSource(html_source); |
171 | 171 |
172 // Set up the chrome://userimage/ source. | 172 // Set up the chrome://userimage/ source. |
173 UserImageSource* user_image_source = new UserImageSource(); | 173 options2::UserImageSource* user_image_source = new options2::UserImageSource() ; |
Dan Beam
2012/03/23 03:25:31
80 char wrap
| |
174 profile->GetChromeURLDataManager()->AddDataSource(user_image_source); | 174 profile->GetChromeURLDataManager()->AddDataSource(user_image_source); |
175 } | 175 } |
176 | 176 |
177 OobeUI::~OobeUI() { | 177 OobeUI::~OobeUI() { |
178 } | 178 } |
179 | 179 |
180 void OobeUI::ShowScreen(WizardScreen* screen) { | 180 void OobeUI::ShowScreen(WizardScreen* screen) { |
181 screen->Show(); | 181 screen->Show(); |
182 } | 182 } |
183 | 183 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 | 246 |
247 void OobeUI::ResetSigninScreenHandlerDelegate() { | 247 void OobeUI::ResetSigninScreenHandlerDelegate() { |
248 signin_screen_handler_->SetDelegate(NULL); | 248 signin_screen_handler_->SetDelegate(NULL); |
249 } | 249 } |
250 | 250 |
251 void OobeUI::OnLoginPromptVisible() { | 251 void OobeUI::OnLoginPromptVisible() { |
252 user_image_screen_actor_->CheckCameraPresence(); | 252 user_image_screen_actor_->CheckCameraPresence(); |
253 } | 253 } |
254 | 254 |
255 } // namespace chromeos | 255 } // namespace chromeos |
OLD | NEW |