| 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/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/system/tray/system_tray.h" | 8 #include "ash/system/tray/system_tray.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 event.type == blink::WebGestureEvent::GesturePinchUpdate || | 455 event.type == blink::WebGestureEvent::GesturePinchUpdate || |
| 456 event.type == blink::WebGestureEvent::GesturePinchEnd; | 456 event.type == blink::WebGestureEvent::GesturePinchEnd; |
| 457 } | 457 } |
| 458 | 458 |
| 459 void WebUILoginView::LoadProgressChanged(content::WebContents* source, | 459 void WebUILoginView::LoadProgressChanged(content::WebContents* source, |
| 460 double progress) { | 460 double progress) { |
| 461 // TODO(jdufault): Remove once crbug.com/452599 is resolved. | 461 // TODO(jdufault): Remove once crbug.com/452599 is resolved. |
| 462 VLOG(1) << "WebUILoginView loading progress updated to " << progress; | 462 VLOG(1) << "WebUILoginView loading progress updated to " << progress; |
| 463 } | 463 } |
| 464 | 464 |
| 465 void WebUILoginView::SwappedOut(content::WebContents* source) { | |
| 466 VLOG(1) << "WebUILoginView got swapped out"; | |
| 467 } | |
| 468 | |
| 469 void WebUILoginView::BeforeUnloadFired(content::WebContents* tab, | 465 void WebUILoginView::BeforeUnloadFired(content::WebContents* tab, |
| 470 bool proceed, | 466 bool proceed, |
| 471 bool* proceed_to_fire_unload) { | 467 bool* proceed_to_fire_unload) { |
| 472 VLOG(1) << "WebUILoginView is unloading"; | 468 VLOG(1) << "WebUILoginView is unloading"; |
| 473 *proceed_to_fire_unload = true; | 469 *proceed_to_fire_unload = true; |
| 474 } | 470 } |
| 475 | 471 |
| 476 void WebUILoginView::RendererUnresponsive(content::WebContents* source) { | 472 void WebUILoginView::RendererUnresponsive(content::WebContents* source) { |
| 477 VLOG(1) << "WebUILoginView renderer became unresponsive"; | 473 VLOG(1) << "WebUILoginView renderer became unresponsive"; |
| 478 } | 474 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 496 if (should_emit_login_prompt_visible_) { | 492 if (should_emit_login_prompt_visible_) { |
| 497 VLOG(1) << "Login WebUI >> login-prompt-visible"; | 493 VLOG(1) << "Login WebUI >> login-prompt-visible"; |
| 498 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()-> | 494 chromeos::DBusThreadManager::Get()->GetSessionManagerClient()-> |
| 499 EmitLoginPromptVisible(); | 495 EmitLoginPromptVisible(); |
| 500 } | 496 } |
| 501 | 497 |
| 502 webui_visible_ = true; | 498 webui_visible_ = true; |
| 503 } | 499 } |
| 504 | 500 |
| 505 } // namespace chromeos | 501 } // namespace chromeos |
| OLD | NEW |