| 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/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 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2218 void AutofillDialogControllerImpl::OnPopupHidden() {} | 2218 void AutofillDialogControllerImpl::OnPopupHidden() {} |
| 2219 | 2219 |
| 2220 bool AutofillDialogControllerImpl::ShouldRepostEvent( | 2220 bool AutofillDialogControllerImpl::ShouldRepostEvent( |
| 2221 const ui::MouseEvent& event) { | 2221 const ui::MouseEvent& event) { |
| 2222 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); | 2222 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); |
| 2223 // If the event would be reposted inside the input showing an Autofill popup, | 2223 // If the event would be reposted inside the input showing an Autofill popup, |
| 2224 // just ignore. | 2224 // just ignore. |
| 2225 return !view_->HitTestInput(popup_input_type_, event.location()); | 2225 return !view_->HitTestInput(popup_input_type_, event.location()); |
| 2226 } | 2226 } |
| 2227 | 2227 |
| 2228 void AutofillDialogControllerImpl::DidSelectSuggestion(int identifier) { | 2228 void AutofillDialogControllerImpl::DidSelectSuggestion( |
| 2229 const base::string16& value, |
| 2230 int identifier) { |
| 2229 // TODO(estade): implement. | 2231 // TODO(estade): implement. |
| 2230 } | 2232 } |
| 2231 | 2233 |
| 2232 void AutofillDialogControllerImpl::DidAcceptSuggestion( | 2234 void AutofillDialogControllerImpl::DidAcceptSuggestion( |
| 2233 const base::string16& value, | 2235 const base::string16& value, |
| 2234 int identifier) { | 2236 int identifier) { |
| 2235 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); | 2237 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); |
| 2236 // Because |HidePopup()| can be called from |UpdateSection()|, remember the | 2238 // Because |HidePopup()| can be called from |UpdateSection()|, remember the |
| 2237 // type of the input for later here. | 2239 // type of the input for later here. |
| 2238 const ServerFieldType popup_input_type = popup_input_type_; | 2240 const ServerFieldType popup_input_type = popup_input_type_; |
| (...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3807 view_->UpdateButtonStrip(); | 3809 view_->UpdateButtonStrip(); |
| 3808 } | 3810 } |
| 3809 | 3811 |
| 3810 void AutofillDialogControllerImpl::FetchWalletCookie() { | 3812 void AutofillDialogControllerImpl::FetchWalletCookie() { |
| 3811 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 3813 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
| 3812 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 3814 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
| 3813 signin_helper_->StartWalletCookieValueFetch(); | 3815 signin_helper_->StartWalletCookieValueFetch(); |
| 3814 } | 3816 } |
| 3815 | 3817 |
| 3816 } // namespace autofill | 3818 } // namespace autofill |
| OLD | NEW |