| 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/ui/views/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1656 true); | 1656 true); |
| 1657 | 1657 |
| 1658 const ExpandingTextfield* expanding = static_cast<ExpandingTextfield*>( | 1658 const ExpandingTextfield* expanding = static_cast<ExpandingTextfield*>( |
| 1659 sender->GetAncestorWithClassName(ExpandingTextfield::kViewClassName)); | 1659 sender->GetAncestorWithClassName(ExpandingTextfield::kViewClassName)); |
| 1660 if (expanding && expanding->needs_layout()) | 1660 if (expanding && expanding->needs_layout()) |
| 1661 ContentsPreferredSizeChanged(); | 1661 ContentsPreferredSizeChanged(); |
| 1662 } | 1662 } |
| 1663 | 1663 |
| 1664 bool AutofillDialogViews::HandleKeyEvent(views::Textfield* sender, | 1664 bool AutofillDialogViews::HandleKeyEvent(views::Textfield* sender, |
| 1665 const ui::KeyEvent& key_event) { | 1665 const ui::KeyEvent& key_event) { |
| 1666 ui::KeyEvent copy(key_event); | 1666 content::NativeWebKeyboardEvent event(key_event); |
| 1667 content::NativeWebKeyboardEvent event(©); | |
| 1668 return delegate_->HandleKeyPressEventInInput(event); | 1667 return delegate_->HandleKeyPressEventInInput(event); |
| 1669 } | 1668 } |
| 1670 | 1669 |
| 1671 bool AutofillDialogViews::HandleMouseEvent(views::Textfield* sender, | 1670 bool AutofillDialogViews::HandleMouseEvent(views::Textfield* sender, |
| 1672 const ui::MouseEvent& mouse_event) { | 1671 const ui::MouseEvent& mouse_event) { |
| 1673 if (mouse_event.IsLeftMouseButton() && sender->HasFocus()) { | 1672 if (mouse_event.IsLeftMouseButton() && sender->HasFocus()) { |
| 1674 InputEditedOrActivated(TypeForTextfield(sender), | 1673 InputEditedOrActivated(TypeForTextfield(sender), |
| 1675 sender->GetBoundsInScreen(), | 1674 sender->GetBoundsInScreen(), |
| 1676 false); | 1675 false); |
| 1677 // Show an error bubble if a user clicks on an input that's already focused | 1676 // Show an error bubble if a user clicks on an input that's already focused |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2504 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2503 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
| 2505 : section(section), | 2504 : section(section), |
| 2506 container(NULL), | 2505 container(NULL), |
| 2507 manual_input(NULL), | 2506 manual_input(NULL), |
| 2508 suggested_info(NULL), | 2507 suggested_info(NULL), |
| 2509 suggested_button(NULL) {} | 2508 suggested_button(NULL) {} |
| 2510 | 2509 |
| 2511 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2510 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
| 2512 | 2511 |
| 2513 } // namespace autofill | 2512 } // namespace autofill |
| OLD | NEW |