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

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

Issue 898453002: HID-detection screen moved to screenContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 const char OobeUI::kScreenDeviceDisabled[] = "device-disabled"; 200 const char OobeUI::kScreenDeviceDisabled[] = "device-disabled";
201 201
202 OobeUI::OobeUI(content::WebUI* web_ui, const GURL& url) 202 OobeUI::OobeUI(content::WebUI* web_ui, const GURL& url)
203 : WebUIController(web_ui), 203 : WebUIController(web_ui),
204 core_handler_(nullptr), 204 core_handler_(nullptr),
205 network_dropdown_handler_(nullptr), 205 network_dropdown_handler_(nullptr),
206 update_screen_handler_(nullptr), 206 update_screen_handler_(nullptr),
207 network_view_(nullptr), 207 network_view_(nullptr),
208 debugging_screen_actor_(nullptr), 208 debugging_screen_actor_(nullptr),
209 eula_view_(nullptr), 209 eula_view_(nullptr),
210 hid_detection_screen_actor_(nullptr),
211 reset_view_(nullptr), 210 reset_view_(nullptr),
211 hid_detection_view_(nullptr),
212 autolaunch_screen_actor_(nullptr), 212 autolaunch_screen_actor_(nullptr),
213 kiosk_enable_screen_actor_(nullptr), 213 kiosk_enable_screen_actor_(nullptr),
214 wrong_hwid_screen_actor_(nullptr), 214 wrong_hwid_screen_actor_(nullptr),
215 auto_enrollment_check_screen_actor_(nullptr), 215 auto_enrollment_check_screen_actor_(nullptr),
216 supervised_user_creation_screen_actor_(nullptr), 216 supervised_user_creation_screen_actor_(nullptr),
217 app_launch_splash_screen_actor_(nullptr), 217 app_launch_splash_screen_actor_(nullptr),
218 controller_pairing_screen_actor_(nullptr), 218 controller_pairing_screen_actor_(nullptr),
219 host_pairing_screen_actor_(nullptr), 219 host_pairing_screen_actor_(nullptr),
220 device_disabled_screen_actor_(nullptr), 220 device_disabled_screen_actor_(nullptr),
221 error_screen_handler_(nullptr), 221 error_screen_handler_(nullptr),
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 wrong_hwid_screen_actor_ = wrong_hwid_screen_handler; 284 wrong_hwid_screen_actor_ = wrong_hwid_screen_handler;
285 AddScreenHandler(wrong_hwid_screen_handler); 285 AddScreenHandler(wrong_hwid_screen_handler);
286 286
287 AutoEnrollmentCheckScreenHandler* auto_enrollment_check_screen_handler = 287 AutoEnrollmentCheckScreenHandler* auto_enrollment_check_screen_handler =
288 new AutoEnrollmentCheckScreenHandler(); 288 new AutoEnrollmentCheckScreenHandler();
289 auto_enrollment_check_screen_actor_ = auto_enrollment_check_screen_handler; 289 auto_enrollment_check_screen_actor_ = auto_enrollment_check_screen_handler;
290 AddScreenHandler(auto_enrollment_check_screen_handler); 290 AddScreenHandler(auto_enrollment_check_screen_handler);
291 291
292 HIDDetectionScreenHandler* hid_detection_screen_handler = 292 HIDDetectionScreenHandler* hid_detection_screen_handler =
293 new HIDDetectionScreenHandler(core_handler_); 293 new HIDDetectionScreenHandler(core_handler_);
294 hid_detection_screen_actor_ = hid_detection_screen_handler; 294 hid_detection_view_ = hid_detection_screen_handler;
295 AddScreenHandler(hid_detection_screen_handler); 295 AddScreenHandler(hid_detection_screen_handler);
296 296
297 error_screen_handler_ = new ErrorScreenHandler(); 297 error_screen_handler_ = new ErrorScreenHandler();
298 AddScreenHandler(error_screen_handler_); 298 AddScreenHandler(error_screen_handler_);
299 299
300 // Initialize ErrorScreen if it hasn't initialized so that NetworkErrorModel 300 // Initialize ErrorScreen if it hasn't initialized so that NetworkErrorModel
301 // is binded properly. 301 // is binded properly.
302 NetworkErrorModel* network_error_model = nullptr; 302 NetworkErrorModel* network_error_model = nullptr;
303 if (WizardController::default_controller()) { 303 if (WizardController::default_controller()) {
304 network_error_model = static_cast<NetworkErrorModel*>( 304 network_error_model = static_cast<NetworkErrorModel*>(
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 } 444 }
445 445
446 WrongHWIDScreenActor* OobeUI::GetWrongHWIDScreenActor() { 446 WrongHWIDScreenActor* OobeUI::GetWrongHWIDScreenActor() {
447 return wrong_hwid_screen_actor_; 447 return wrong_hwid_screen_actor_;
448 } 448 }
449 449
450 AutoEnrollmentCheckScreenActor* OobeUI::GetAutoEnrollmentCheckScreenActor() { 450 AutoEnrollmentCheckScreenActor* OobeUI::GetAutoEnrollmentCheckScreenActor() {
451 return auto_enrollment_check_screen_actor_; 451 return auto_enrollment_check_screen_actor_;
452 } 452 }
453 453
454 HIDDetectionScreenActor* OobeUI::GetHIDDetectionScreenActor() { 454 HIDDetectionView* OobeUI::GetHIDDetectionView() {
455 return hid_detection_screen_actor_; 455 return hid_detection_view_;
456 } 456 }
457 457
458 ControllerPairingScreenActor* OobeUI::GetControllerPairingScreenActor() { 458 ControllerPairingScreenActor* OobeUI::GetControllerPairingScreenActor() {
459 return controller_pairing_screen_actor_; 459 return controller_pairing_screen_actor_;
460 } 460 }
461 461
462 HostPairingScreenActor* OobeUI::GetHostPairingScreenActor() { 462 HostPairingScreenActor* OobeUI::GetHostPairingScreenActor() {
463 return host_pairing_screen_actor_; 463 return host_pairing_screen_actor_;
464 } 464 }
465 465
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 DCHECK(screen_ids_.count(screen)) 655 DCHECK(screen_ids_.count(screen))
656 << "Screen should be registered in InitializeScreenMaps()"; 656 << "Screen should be registered in InitializeScreenMaps()";
657 Screen new_screen = screen_ids_[screen]; 657 Screen new_screen = screen_ids_[screen];
658 FOR_EACH_OBSERVER(Observer, 658 FOR_EACH_OBSERVER(Observer,
659 observer_list_, 659 observer_list_,
660 OnCurrentScreenChanged(current_screen_, new_screen)); 660 OnCurrentScreenChanged(current_screen_, new_screen));
661 current_screen_ = new_screen; 661 current_screen_ = new_screen;
662 } 662 }
663 663
664 } // namespace chromeos 664 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698