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 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2243 void AutofillDialogControllerImpl::OnPopupHidden() {} | 2243 void AutofillDialogControllerImpl::OnPopupHidden() {} |
2244 | 2244 |
2245 bool AutofillDialogControllerImpl::ShouldRepostEvent( | 2245 bool AutofillDialogControllerImpl::ShouldRepostEvent( |
2246 const ui::MouseEvent& event) { | 2246 const ui::MouseEvent& event) { |
2247 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); | 2247 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); |
2248 // If the event would be reposted inside the input showing an Autofill popup, | 2248 // If the event would be reposted inside the input showing an Autofill popup, |
2249 // just ignore. | 2249 // just ignore. |
2250 return !view_->HitTestInput(popup_input_type_, event.location()); | 2250 return !view_->HitTestInput(popup_input_type_, event.location()); |
2251 } | 2251 } |
2252 | 2252 |
2253 void AutofillDialogControllerImpl::DidSelectSuggestion(int identifier) { | 2253 void AutofillDialogControllerImpl::DidSelectSuggestion( |
| 2254 const base::string16& value, |
| 2255 int identifier) { |
2254 // TODO(estade): implement. | 2256 // TODO(estade): implement. |
2255 } | 2257 } |
2256 | 2258 |
2257 void AutofillDialogControllerImpl::DidAcceptSuggestion( | 2259 void AutofillDialogControllerImpl::DidAcceptSuggestion( |
2258 const base::string16& value, | 2260 const base::string16& value, |
2259 int identifier) { | 2261 int identifier) { |
2260 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); | 2262 DCHECK_NE(UNKNOWN_TYPE, popup_input_type_); |
2261 // Because |HidePopup()| can be called from |UpdateSection()|, remember the | 2263 // Because |HidePopup()| can be called from |UpdateSection()|, remember the |
2262 // type of the input for later here. | 2264 // type of the input for later here. |
2263 const ServerFieldType popup_input_type = popup_input_type_; | 2265 const ServerFieldType popup_input_type = popup_input_type_; |
(...skipping 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3880 view_->UpdateButtonStrip(); | 3882 view_->UpdateButtonStrip(); |
3881 } | 3883 } |
3882 | 3884 |
3883 void AutofillDialogControllerImpl::FetchWalletCookie() { | 3885 void AutofillDialogControllerImpl::FetchWalletCookie() { |
3884 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 3886 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
3885 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 3887 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
3886 signin_helper_->StartWalletCookieValueFetch(); | 3888 signin_helper_->StartWalletCookieValueFetch(); |
3887 } | 3889 } |
3888 | 3890 |
3889 } // namespace autofill | 3891 } // namespace autofill |
OLD | NEW |