| OLD | NEW |
| 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 #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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 std::string OobeUIHTMLSource::GetDataResource(int resource_id) const { | 102 std::string OobeUIHTMLSource::GetDataResource(int resource_id) const { |
| 103 const base::StringPiece html( | 103 const base::StringPiece html( |
| 104 ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id)); | 104 ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id)); |
| 105 return jstemplate_builder::GetI18nTemplateHtml(html, | 105 return jstemplate_builder::GetI18nTemplateHtml(html, |
| 106 localized_strings_.get()); | 106 localized_strings_.get()); |
| 107 } | 107 } |
| 108 | 108 |
| 109 // OobeUI ---------------------------------------------------------------------- | 109 // OobeUI ---------------------------------------------------------------------- |
| 110 | 110 |
| 111 OobeUI::OobeUI(WebContents* contents) | 111 OobeUI::OobeUI(WebContents* contents) |
| 112 : WebUI(contents), | 112 : WebUI(contents, this), |
| 113 update_screen_actor_(NULL), | 113 update_screen_actor_(NULL), |
| 114 network_screen_actor_(NULL), | 114 network_screen_actor_(NULL), |
| 115 eula_screen_actor_(NULL), | 115 eula_screen_actor_(NULL), |
| 116 signin_screen_handler_(NULL), | 116 signin_screen_handler_(NULL), |
| 117 user_image_screen_actor_(NULL) { | 117 user_image_screen_actor_(NULL) { |
| 118 core_handler_ = new CoreOobeHandler(this); | 118 core_handler_ = new CoreOobeHandler(this); |
| 119 AddScreenHandler(core_handler_); | 119 AddScreenHandler(core_handler_); |
| 120 | 120 |
| 121 AddScreenHandler(new NetworkDropdownHandler); | 121 AddScreenHandler(new NetworkDropdownHandler); |
| 122 | 122 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 void OobeUI::ResetSigninScreenHandlerDelegate() { | 242 void OobeUI::ResetSigninScreenHandlerDelegate() { |
| 243 signin_screen_handler_->SetDelegate(NULL); | 243 signin_screen_handler_->SetDelegate(NULL); |
| 244 } | 244 } |
| 245 | 245 |
| 246 void OobeUI::OnLoginPromptVisible() { | 246 void OobeUI::OnLoginPromptVisible() { |
| 247 user_image_screen_actor_->CheckCameraPresence(); | 247 user_image_screen_actor_->CheckCameraPresence(); |
| 248 } | 248 } |
| 249 | 249 |
| 250 } // namespace chromeos | 250 } // namespace chromeos |
| OLD | NEW |