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 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1687 delegate_->GetWebContents()->GetBrowserContext()); | 1687 delegate_->GetWebContents()->GetBrowserContext()); |
1688 } | 1688 } |
1689 | 1689 |
1690 void AutofillDialogViews::ContentsChanged(views::Textfield* sender, | 1690 void AutofillDialogViews::ContentsChanged(views::Textfield* sender, |
1691 const base::string16& new_contents) { | 1691 const base::string16& new_contents) { |
1692 TextfieldEditedOrActivated(sender, true); | 1692 TextfieldEditedOrActivated(sender, true); |
1693 } | 1693 } |
1694 | 1694 |
1695 bool AutofillDialogViews::HandleKeyEvent(views::Textfield* sender, | 1695 bool AutofillDialogViews::HandleKeyEvent(views::Textfield* sender, |
1696 const ui::KeyEvent& key_event) { | 1696 const ui::KeyEvent& key_event) { |
1697 scoped_ptr<ui::KeyEvent> copy(key_event.Copy()); | 1697 scoped_ptr<ui::KeyEvent> copy(new ui::KeyEvent(key_event)); |
Evan Stade
2013/12/02 18:17:33
no need to make this a scoped_ptr now.
sadrul
2013/12/02 18:29:58
Done.
| |
1698 #if defined(OS_WIN) && !defined(USE_AURA) | 1698 #if defined(OS_WIN) && !defined(USE_AURA) |
1699 content::NativeWebKeyboardEvent event(copy->native_event()); | 1699 content::NativeWebKeyboardEvent event(copy->native_event()); |
1700 #else | 1700 #else |
1701 content::NativeWebKeyboardEvent event(copy.get()); | 1701 content::NativeWebKeyboardEvent event(copy.get()); |
1702 #endif | 1702 #endif |
1703 return delegate_->HandleKeyPressEventInInput(event); | 1703 return delegate_->HandleKeyPressEventInInput(event); |
1704 } | 1704 } |
1705 | 1705 |
1706 bool AutofillDialogViews::HandleMouseEvent(views::Textfield* sender, | 1706 bool AutofillDialogViews::HandleMouseEvent(views::Textfield* sender, |
1707 const ui::MouseEvent& mouse_event) { | 1707 const ui::MouseEvent& mouse_event) { |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2447 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 2447 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
2448 : section(section), | 2448 : section(section), |
2449 container(NULL), | 2449 container(NULL), |
2450 manual_input(NULL), | 2450 manual_input(NULL), |
2451 suggested_info(NULL), | 2451 suggested_info(NULL), |
2452 suggested_button(NULL) {} | 2452 suggested_button(NULL) {} |
2453 | 2453 |
2454 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 2454 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
2455 | 2455 |
2456 } // namespace autofill | 2456 } // namespace autofill |
OLD | NEW |