| 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/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 22 matching lines...) Expand all Loading... |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #if defined(USE_VIRTUAL_KEYBOARD) | 35 #if defined(USE_VIRTUAL_KEYBOARD) |
| 36 #include "chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.h" | 36 #include "chrome/browser/ui/virtual_keyboard/virtual_keyboard_manager.h" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 #if defined(USE_AURA) | 39 #if defined(USE_AURA) |
| 40 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" | 40 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 using content::RenderViewHost; |
| 43 using content::WebContents; | 44 using content::WebContents; |
| 44 | 45 |
| 45 namespace { | 46 namespace { |
| 46 | 47 |
| 47 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView"; | 48 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView"; |
| 48 | 49 |
| 49 // These strings must be kept in sync with handleAccelerator() in oobe.js. | 50 // These strings must be kept in sync with handleAccelerator() in oobe.js. |
| 50 const char kAccelNameAccessibility[] = "accessibility"; | 51 const char kAccelNameAccessibility[] = "accessibility"; |
| 51 const char kAccelNameCancel[] = "cancel"; | 52 const char kAccelNameCancel[] = "cancel"; |
| 52 const char kAccelNameEnrollment[] = "enrollment"; | 53 const char kAccelNameEnrollment[] = "enrollment"; |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 // when the focus is inside an iframe. Only clear on KeyDown to prevent hiding | 425 // when the focus is inside an iframe. Only clear on KeyDown to prevent hiding |
| 425 // an immediate authentication error (See crbug.com/103643). | 426 // an immediate authentication error (See crbug.com/103643). |
| 426 if (event.type == WebKit::WebInputEvent::KeyDown) { | 427 if (event.type == WebKit::WebInputEvent::KeyDown) { |
| 427 content::WebUI* web_ui = GetWebUI(); | 428 content::WebUI* web_ui = GetWebUI(); |
| 428 if (web_ui) | 429 if (web_ui) |
| 429 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); | 430 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); |
| 430 } | 431 } |
| 431 } | 432 } |
| 432 | 433 |
| 433 } // namespace chromeos | 434 } // namespace chromeos |
| OLD | NEW |