| 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 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 21 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 22 #include "chrome/common/render_messages.h" | 22 #include "chrome/common/render_messages.h" |
| 23 #include "content/browser/renderer_host/render_view_host_observer.h" | 23 #include "content/browser/renderer_host/render_view_host_observer.h" |
| 24 #include "content/browser/tab_contents/tab_contents.h" | 24 #include "content/browser/tab_contents/tab_contents.h" |
| 25 #include "ui/gfx/rect.h" | 25 #include "ui/gfx/rect.h" |
| 26 #include "ui/gfx/size.h" | 26 #include "ui/gfx/size.h" |
| 27 #include "ui/views/desktop/desktop_window_view.h" | 27 #include "ui/views/desktop/desktop_window_view.h" |
| 28 #include "views/widget/widget.h" | 28 #include "views/widget/widget.h" |
| 29 | 29 |
| 30 #if defined(TOOLKIT_USES_GTK) | 30 #if defined(TOOLKIT_USES_GTK) |
| 31 #include "chrome/browser/chromeos/wm_ipc.h" | 31 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
| 32 #include "views/widget/native_widget_gtk.h" | 32 #include "views/widget/native_widget_gtk.h" |
| 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 namespace { | 39 namespace { |
| 40 | 40 |
| 41 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView"; | 41 const char kViewClassName[] = "browser/chromeos/login/WebUILoginView"; |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 // when the focus is inside an iframe. Only clear on KeyDown to prevent hiding | 409 // when the focus is inside an iframe. Only clear on KeyDown to prevent hiding |
| 410 // an immediate authentication error (See crbug.com/103643). | 410 // an immediate authentication error (See crbug.com/103643). |
| 411 if (event.type == WebKit::WebInputEvent::KeyDown) { | 411 if (event.type == WebKit::WebInputEvent::KeyDown) { |
| 412 WebUI* web_ui = GetWebUI(); | 412 WebUI* web_ui = GetWebUI(); |
| 413 if (web_ui) | 413 if (web_ui) |
| 414 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); | 414 web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors"); |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 | 417 |
| 418 } // namespace chromeos | 418 } // namespace chromeos |
| OLD | NEW |