| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webui_login_view.h" | 5 #include "chrome/browser/chromeos/login/webui_login_view.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // In aura or views-desktop environment, there will be no window-manager. So | 314 // In aura or views-desktop environment, there will be no window-manager. So |
| 315 // chrome needs to emit the 'login-prompt-visible' signal. This needs to | 315 // chrome needs to emit the 'login-prompt-visible' signal. This needs to |
| 316 // happen here, after the page has completed rendering itself. | 316 // happen here, after the page has completed rendering itself. |
| 317 #if defined(USE_AURA) | 317 #if defined(USE_AURA) |
| 318 emit_login_visible = true; | 318 emit_login_visible = true; |
| 319 #else | 319 #else |
| 320 if (views::desktop::DesktopWindowView::desktop_window_view) | 320 if (views::desktop::DesktopWindowView::desktop_window_view) |
| 321 emit_login_visible = true; | 321 emit_login_visible = true; |
| 322 #endif | 322 #endif |
| 323 if (emit_login_visible) | 323 if (emit_login_visible) |
| 324 chromeos::DBusThreadManager::Get()->session_manager_client() | 324 chromeos::DBusThreadManager::Get()->GetSessionManagerClient() |
| 325 ->EmitLoginPromptVisible(); | 325 ->EmitLoginPromptVisible(); |
| 326 | 326 |
| 327 OobeUI* oobe_ui = static_cast<OobeUI*>(GetWebUI()); | 327 OobeUI* oobe_ui = static_cast<OobeUI*>(GetWebUI()); |
| 328 // Notify OOBE that the login frame has been rendered. Currently | 328 // Notify OOBE that the login frame has been rendered. Currently |
| 329 // this is used to start camera presence check. | 329 // this is used to start camera presence check. |
| 330 oobe_ui->OnLoginPromptVisible(); | 330 oobe_ui->OnLoginPromptVisible(); |
| 331 } | 331 } |
| 332 | 332 |
| 333 void WebUILoginView::InitStatusArea() { | 333 void WebUILoginView::InitStatusArea() { |
| 334 DCHECK(status_area_ == NULL); | 334 DCHECK(status_area_ == NULL); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 WebUI* web_ui = GetWebUI(); | 420 WebUI* web_ui = GetWebUI(); |
| 421 if (web_ui) | 421 if (web_ui) |
| 422 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); | 422 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); |
| 423 } | 423 } |
| 424 | 424 |
| 425 views::Widget* WebUILoginView::GetLoginWindow() { | 425 views::Widget* WebUILoginView::GetLoginWindow() { |
| 426 return WebUILoginDisplay::GetLoginWindow(); | 426 return WebUILoginDisplay::GetLoginWindow(); |
| 427 } | 427 } |
| 428 | 428 |
| 429 } // namespace chromeos | 429 } // namespace chromeos |
| OLD | NEW |