| 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/core_oobe_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h" |
| 6 | 6 |
| 7 #include <type_traits> | 7 #include <type_traits> |
| 8 | 8 |
| 9 #include "ash/accessibility_types.h" | 9 #include "ash/accessibility_types.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 help_app_ = new HelpAppLauncher(GetNativeWindow()); | 478 help_app_ = new HelpAppLauncher(GetNativeWindow()); |
| 479 help_app_->ShowHelpTopic( | 479 help_app_->ShowHelpTopic( |
| 480 static_cast<HelpAppLauncher::HelpTopic>(help_topic_id)); | 480 static_cast<HelpAppLauncher::HelpTopic>(help_topic_id)); |
| 481 } | 481 } |
| 482 | 482 |
| 483 void CoreOobeHandler::HandleHeaderBarVisible() { | 483 void CoreOobeHandler::HandleHeaderBarVisible() { |
| 484 LoginDisplayHost* login_display_host = LoginDisplayHost::default_host(); | 484 LoginDisplayHost* login_display_host = LoginDisplayHost::default_host(); |
| 485 if (login_display_host) | 485 if (login_display_host) |
| 486 login_display_host->SetStatusAreaVisible(true); | 486 login_display_host->SetStatusAreaVisible(true); |
| 487 if (ScreenLocker::default_screen_locker()) | 487 if (ScreenLocker::default_screen_locker()) |
| 488 ScreenLocker::default_screen_locker()->web_ui()->OnHeaderBarVisible(); | 488 ScreenLocker::default_screen_locker()->delegate()->OnHeaderBarVisible(); |
| 489 } | 489 } |
| 490 | 490 |
| 491 void CoreOobeHandler::HandleRaiseTabKeyEvent(bool reverse) { | 491 void CoreOobeHandler::HandleRaiseTabKeyEvent(bool reverse) { |
| 492 ui::KeyEvent event(ui::ET_KEY_PRESSED, ui::VKEY_TAB, ui::EF_NONE); | 492 ui::KeyEvent event(ui::ET_KEY_PRESSED, ui::VKEY_TAB, ui::EF_NONE); |
| 493 if (reverse) | 493 if (reverse) |
| 494 event.set_flags(ui::EF_SHIFT_DOWN); | 494 event.set_flags(ui::EF_SHIFT_DOWN); |
| 495 SendEventToSink(&event); | 495 SendEventToSink(&event); |
| 496 } | 496 } |
| 497 | 497 |
| 498 void CoreOobeHandler::HandleSetOobeBootstrappingSlave() { | 498 void CoreOobeHandler::HandleSetOobeBootstrappingSlave() { |
| 499 const bool is_slave = g_browser_process->local_state()->GetBoolean( | 499 const bool is_slave = g_browser_process->local_state()->GetBoolean( |
| 500 prefs::kIsBootstrappingSlave); | 500 prefs::kIsBootstrappingSlave); |
| 501 if (is_slave) | 501 if (is_slave) |
| 502 return; | 502 return; |
| 503 g_browser_process->local_state()->SetBoolean(prefs::kIsBootstrappingSlave, | 503 g_browser_process->local_state()->SetBoolean(prefs::kIsBootstrappingSlave, |
| 504 true); | 504 true); |
| 505 chrome::AttemptRestart(); | 505 chrome::AttemptRestart(); |
| 506 } | 506 } |
| 507 | 507 |
| 508 void CoreOobeHandler::InitDemoModeDetection() { | 508 void CoreOobeHandler::InitDemoModeDetection() { |
| 509 demo_mode_detector_.InitDetection(); | 509 demo_mode_detector_.InitDetection(); |
| 510 } | 510 } |
| 511 | 511 |
| 512 void CoreOobeHandler::StopDemoModeDetection() { | 512 void CoreOobeHandler::StopDemoModeDetection() { |
| 513 demo_mode_detector_.StopDetection(); | 513 demo_mode_detector_.StopDetection(); |
| 514 } | 514 } |
| 515 | 515 |
| 516 } // namespace chromeos | 516 } // namespace chromeos |
| OLD | NEW |