Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_dialog_views.cc

Issue 739993002: MacViews: Fix build errors related to NativeWebKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix for Sadrul Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/dropdown_bar_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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(&copy);
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/dropdown_bar_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698