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/autofill/autofill_dialog_controller_impl.cc

Issue 44543002: Enable touch for autofill popup view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Gtk and Cocoa compile errors Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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/autofill/autofill_dialog_controller_impl.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 2123
2124 void AutofillDialogControllerImpl::OnPopupHidden( 2124 void AutofillDialogControllerImpl::OnPopupHidden(
2125 content::RenderWidgetHost::KeyPressEventCallback* callback) {} 2125 content::RenderWidgetHost::KeyPressEventCallback* callback) {}
2126 2126
2127 bool AutofillDialogControllerImpl::ShouldRepostEvent( 2127 bool AutofillDialogControllerImpl::ShouldRepostEvent(
2128 const ui::MouseEvent& event) { 2128 const ui::MouseEvent& event) {
2129 // If the event would be reposted inside |input_showing_popup_|, just ignore. 2129 // If the event would be reposted inside |input_showing_popup_|, just ignore.
2130 return !view_->HitTestInput(*input_showing_popup_, event.location()); 2130 return !view_->HitTestInput(*input_showing_popup_, event.location());
2131 } 2131 }
2132 2132
2133 void AutofillDialogControllerImpl::DidSelectSuggestion(int identifier) { 2133 void AutofillDialogControllerImpl::DidPreselectSuggestion(int identifier) {
2134 // TODO(estade): implement. 2134 // TODO(estade): implement.
2135 } 2135 }
2136 2136
2137 void AutofillDialogControllerImpl::DidAcceptSuggestion(const string16& value, 2137 void AutofillDialogControllerImpl::DidAcceptSuggestion(const string16& value,
2138 int identifier) { 2138 int identifier) {
2139 ScopedViewUpdates updates(view_.get()); 2139 ScopedViewUpdates updates(view_.get());
2140 const PersonalDataManager::GUIDPair& pair = popup_guids_[identifier]; 2140 const PersonalDataManager::GUIDPair& pair = popup_guids_[identifier];
2141 2141
2142 scoped_ptr<DataModelWrapper> wrapper; 2142 scoped_ptr<DataModelWrapper> wrapper;
2143 if (common::IsCreditCardType(input_showing_popup_->type)) { 2143 if (common::IsCreditCardType(input_showing_popup_->type)) {
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3525 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); 3525 net::URLRequestContextGetter* request_context = profile_->GetRequestContext();
3526 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); 3526 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context));
3527 signin_helper_->StartWalletCookieValueFetch(); 3527 signin_helper_->StartWalletCookieValueFetch();
3528 3528
3529 username_fetcher_.reset( 3529 username_fetcher_.reset(
3530 new wallet::WalletSigninHelper(this, request_context)); 3530 new wallet::WalletSigninHelper(this, request_context));
3531 username_fetcher_->StartUserNameFetch(); 3531 username_fetcher_->StartUserNameFetch();
3532 } 3532 }
3533 3533
3534 } // namespace autofill 3534 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698