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

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

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 #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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.h ('k') | chrome/browser/ui/webui/chromeos/mobile_setup_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698