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/ui/webui_login_view.h" | 5 #include "chrome/browser/chromeos/login/ui/webui_login_view.h" |
6 | 6 |
7 #include "ash/focus_cycler.h" | 7 #include "ash/focus_cycler.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/system/status_area_widget_delegate.h" | 9 #include "ash/system/status_area_widget_delegate.h" |
10 #include "ash/system/tray/system_tray.h" | 10 #include "ash/system/tray/system_tray.h" |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 } | 430 } |
431 | 431 |
432 views::WebView* WebUILoginView::web_view() { | 432 views::WebView* WebUILoginView::web_view() { |
433 return webui_login_.get(); | 433 return webui_login_.get(); |
434 } | 434 } |
435 | 435 |
436 //////////////////////////////////////////////////////////////////////////////// | 436 //////////////////////////////////////////////////////////////////////////////// |
437 // ash::ShellObserver: | 437 // ash::ShellObserver: |
438 | 438 |
439 void WebUILoginView::OnVirtualKeyboardStateChanged(bool activated, | 439 void WebUILoginView::OnVirtualKeyboardStateChanged(bool activated, |
440 ash::WmWindow* root_window) { | 440 aura::Window* root_window) { |
441 auto* keyboard_controller = keyboard::KeyboardController::GetInstance(); | 441 auto* keyboard_controller = keyboard::KeyboardController::GetInstance(); |
442 if (keyboard_controller) { | 442 if (keyboard_controller) { |
443 if (activated) { | 443 if (activated) { |
444 if (!keyboard_controller->HasObserver(this)) | 444 if (!keyboard_controller->HasObserver(this)) |
445 keyboard_controller->AddObserver(this); | 445 keyboard_controller->AddObserver(this); |
446 } else { | 446 } else { |
447 keyboard_controller->RemoveObserver(this); | 447 keyboard_controller->RemoveObserver(this); |
448 } | 448 } |
449 } | 449 } |
450 } | 450 } |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 if (should_emit_login_prompt_visible_) { | 571 if (should_emit_login_prompt_visible_) { |
572 VLOG(1) << "Login WebUI >> login-prompt-visible"; | 572 VLOG(1) << "Login WebUI >> login-prompt-visible"; |
573 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()-> | 573 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()-> |
574 EmitLoginPromptVisible(); | 574 EmitLoginPromptVisible(); |
575 } | 575 } |
576 | 576 |
577 webui_visible_ = true; | 577 webui_visible_ = true; |
578 } | 578 } |
579 | 579 |
580 } // namespace chromeos | 580 } // namespace chromeos |
OLD | NEW |