| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/login/lock/webui_screen_locker.h" | 5 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/system/chromeos/power/power_event_observer.h" | 8 #include "ash/system/chromeos/power/power_event_observer.h" |
| 9 #include "ash/wm/lock_state_controller.h" | 9 #include "ash/wm/lock_state_controller.h" |
| 10 #include "ash/wm/lock_state_observer.h" | 10 #include "ash/wm/lock_state_observer.h" |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 346 } |
| 347 | 347 |
| 348 void WebUIScreenLocker::RenderProcessGone(base::TerminationStatus status) { | 348 void WebUIScreenLocker::RenderProcessGone(base::TerminationStatus status) { |
| 349 if (browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID && | 349 if (browser_shutdown::GetShutdownType() == browser_shutdown::NOT_VALID && |
| 350 status != base::TERMINATION_STATUS_NORMAL_TERMINATION) { | 350 status != base::TERMINATION_STATUS_NORMAL_TERMINATION) { |
| 351 LOG(ERROR) << "Renderer crash on lock screen; signing out"; | 351 LOG(ERROR) << "Renderer crash on lock screen; signing out"; |
| 352 Signout(); | 352 Signout(); |
| 353 } | 353 } |
| 354 } | 354 } |
| 355 | 355 |
| 356 void WebUIScreenLocker::PluginCrashed(const base::FilePath& plugin_path, | |
| 357 base::ProcessId plugin_pid) { | |
| 358 LOG(ERROR) << "Plugin crash on lock screen (plugin_path: " | |
| 359 << plugin_path.LossyDisplayName() << " plugin_pid: " << plugin_pid | |
| 360 << ")"; | |
| 361 } | |
| 362 | |
| 363 void WebUIScreenLocker::PluginHungStatusChanged( | |
| 364 int plugin_child_id, | |
| 365 const base::FilePath& plugin_path, | |
| 366 bool is_hung) { | |
| 367 LOG(ERROR) << "Plugin hung status change on lock screen;" | |
| 368 << " (plugin_child_id: " << plugin_child_id | |
| 369 << " plugin_path: " << plugin_path.LossyDisplayName() | |
| 370 << " is_hung: " << is_hung << ")"; | |
| 371 } | |
| 372 | |
| 373 void WebUIScreenLocker::WebContentsDestroyed() { | |
| 374 VLOG(2) << "Lock screen WebContents instance destroyed"; | |
| 375 } | |
| 376 | |
| 377 //////////////////////////////////////////////////////////////////////////////// | 356 //////////////////////////////////////////////////////////////////////////////// |
| 378 // ash::KeyboardStateObserver overrides. | 357 // ash::KeyboardStateObserver overrides. |
| 379 | 358 |
| 380 void WebUIScreenLocker::OnVirtualKeyboardStateChanged(bool activated) { | 359 void WebUIScreenLocker::OnVirtualKeyboardStateChanged(bool activated) { |
| 381 if (keyboard::KeyboardController::GetInstance()) { | 360 if (keyboard::KeyboardController::GetInstance()) { |
| 382 if (activated) { | 361 if (activated) { |
| 383 if (!is_observing_keyboard_) { | 362 if (!is_observing_keyboard_) { |
| 384 keyboard::KeyboardController::GetInstance()->AddObserver(this); | 363 keyboard::KeyboardController::GetInstance()->AddObserver(this); |
| 385 is_observing_keyboard_ = true; | 364 is_observing_keyboard_ = true; |
| 386 } | 365 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 } | 403 } |
| 425 | 404 |
| 426 if (GetOobeUI()) { | 405 if (GetOobeUI()) { |
| 427 const gfx::Size& size = primary_display.size(); | 406 const gfx::Size& size = primary_display.size(); |
| 428 GetOobeUI()->GetCoreOobeActor()->SetClientAreaSize(size.width(), | 407 GetOobeUI()->GetCoreOobeActor()->SetClientAreaSize(size.width(), |
| 429 size.height()); | 408 size.height()); |
| 430 } | 409 } |
| 431 } | 410 } |
| 432 | 411 |
| 433 } // namespace chromeos | 412 } // namespace chromeos |
| OLD | NEW |