OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/views/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h" | 10 #include "chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h" |
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
12 #include "chrome/browser/ui/views/autofill/decorated_textfield.h" | 12 #include "chrome/browser/ui/views/autofill/decorated_textfield.h" |
13 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
14 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" | 14 #include "chrome/browser/ui/views/frame/test_with_browser_view.h" |
15 #include "components/web_modal/test_web_contents_modal_dialog_host.h" | 15 #include "components/web_modal/test_web_contents_modal_dialog_host.h" |
16 #include "components/web_modal/test_web_contents_modal_dialog_manager_delegate.h
" | 16 #include "components/web_modal/test_web_contents_modal_dialog_manager_delegate.h
" |
17 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 17 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
18 #include "content/public/browser/native_web_keyboard_event.h" | 18 #include "content/public/browser/native_web_keyboard_event.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 views::FocusManager* focus_manager = dialog()->GetWidget()->GetFocusManager(); | 117 views::FocusManager* focus_manager = dialog()->GetWidget()->GetFocusManager(); |
118 views::View* focused_view = focus_manager->GetFocusedView(); | 118 views::View* focused_view = focus_manager->GetFocusedView(); |
119 ASSERT_STREQ(DecoratedTextfield::kViewClassName, | 119 ASSERT_STREQ(DecoratedTextfield::kViewClassName, |
120 focused_view->GetClassName()); | 120 focused_view->GetClassName()); |
121 EXPECT_FALSE(dialog()->HandleKeyEvent( | 121 EXPECT_FALSE(dialog()->HandleKeyEvent( |
122 static_cast<views::Textfield*>(focused_view), | 122 static_cast<views::Textfield*>(focused_view), |
123 ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE))); | 123 ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE))); |
124 } | 124 } |
125 | 125 |
126 } // namespace autofill | 126 } // namespace autofill |
OLD | NEW |