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 24 matching lines...) Expand all Loading... |
35 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 35 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
36 #include "content/public/browser/notification_service.h" | 36 #include "content/public/browser/notification_service.h" |
37 #include "content/public/browser/render_frame_host.h" | 37 #include "content/public/browser/render_frame_host.h" |
38 #include "content/public/browser/render_view_host.h" | 38 #include "content/public/browser/render_view_host.h" |
39 #include "content/public/browser/render_widget_host_view.h" | 39 #include "content/public/browser/render_widget_host_view.h" |
40 #include "content/public/browser/web_contents.h" | 40 #include "content/public/browser/web_contents.h" |
41 #include "content/public/browser/web_ui.h" | 41 #include "content/public/browser/web_ui.h" |
42 #include "content/public/common/renderer_preferences.h" | 42 #include "content/public/common/renderer_preferences.h" |
43 #include "third_party/WebKit/public/web/WebInputEvent.h" | 43 #include "third_party/WebKit/public/web/WebInputEvent.h" |
44 #include "ui/gfx/geometry/rect.h" | 44 #include "ui/gfx/geometry/rect.h" |
45 #include "ui/gfx/size.h" | 45 #include "ui/gfx/geometry/size.h" |
46 #include "ui/views/controls/webview/webview.h" | 46 #include "ui/views/controls/webview/webview.h" |
47 #include "ui/views/widget/widget.h" | 47 #include "ui/views/widget/widget.h" |
48 | 48 |
49 using content::NativeWebKeyboardEvent; | 49 using content::NativeWebKeyboardEvent; |
50 using content::RenderViewHost; | 50 using content::RenderViewHost; |
51 using content::WebContents; | 51 using content::WebContents; |
52 using web_modal::WebContentsModalDialogManager; | 52 using web_modal::WebContentsModalDialogManager; |
53 | 53 |
54 namespace { | 54 namespace { |
55 | 55 |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 webui_visible_ = true; | 506 webui_visible_ = true; |
507 } | 507 } |
508 | 508 |
509 void WebUILoginView::ReturnFocus(bool reverse) { | 509 void WebUILoginView::ReturnFocus(bool reverse) { |
510 // Return the focus to the web contents. | 510 // Return the focus to the web contents. |
511 webui_login_->web_contents()->FocusThroughTabTraversal(reverse); | 511 webui_login_->web_contents()->FocusThroughTabTraversal(reverse); |
512 GetWidget()->Activate(); | 512 GetWidget()->Activate(); |
513 } | 513 } |
514 | 514 |
515 } // namespace chromeos | 515 } // namespace chromeos |
OLD | NEW |