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

Side by Side Diff: chrome/browser/autofill/autofill_external_delegate.cc

Issue 11299287: Fixing missing password Autofill popup for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
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 "base/utf_string_conversions.h" 5 #include "base/utf_string_conversions.h"
6 #include "chrome/browser/autofill/autocomplete_history_manager.h" 6 #include "chrome/browser/autofill/autocomplete_history_manager.h"
7 #include "chrome/browser/autofill/autofill_external_delegate.h" 7 #include "chrome/browser/autofill/autofill_external_delegate.h"
8 #include "chrome/browser/autofill/autofill_manager.h" 8 #include "chrome/browser/autofill/autofill_manager.h"
9 #include "chrome/common/autofill_messages.h" 9 #include "chrome/common/autofill_messages.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // User selected 'Autofill Options'. 201 // User selected 'Autofill Options'.
202 autofill_manager_->OnShowAutofillDialog(); 202 autofill_manager_->OnShowAutofillDialog();
203 } else if (unique_id == WebAutofillClient::MenuItemIDClearForm) { 203 } else if (unique_id == WebAutofillClient::MenuItemIDClearForm) {
204 // User selected 'Clear form'. 204 // User selected 'Clear form'.
205 host->Send(new AutofillMsg_ClearForm(host->GetRoutingID())); 205 host->Send(new AutofillMsg_ClearForm(host->GetRoutingID()));
206 } else if (unique_id == WebAutofillClient::MenuItemIDPasswordEntry && 206 } else if (unique_id == WebAutofillClient::MenuItemIDPasswordEntry &&
207 password_autofill_manager_.DidAcceptAutofillSuggestion( 207 password_autofill_manager_.DidAcceptAutofillSuggestion(
208 autofill_query_field_, value)) { 208 autofill_query_field_, value)) {
209 // DidAcceptAutofillSuggestion has already handled the work to fill in 209 // DidAcceptAutofillSuggestion has already handled the work to fill in
210 // the page as required. 210 // the page as required.
211 popup_visible_ = true;
Ilya Sherman 2012/12/03 23:27:17 Hmm, why is this change needed? It's not obvious
aurimas (slooooooooow) 2012/12/04 02:05:00 Done.
211 } else if (unique_id == WebAutofillClient::MenuItemIDDataListEntry) { 212 } else if (unique_id == WebAutofillClient::MenuItemIDDataListEntry) {
212 host->Send(new AutofillMsg_AcceptDataListSuggestion(host->GetRoutingID(), 213 host->Send(new AutofillMsg_AcceptDataListSuggestion(host->GetRoutingID(),
213 value)); 214 value));
214 } else if (unique_id == WebAutofillClient::MenuItemIDAutocompleteEntry) { 215 } else if (unique_id == WebAutofillClient::MenuItemIDAutocompleteEntry) {
215 // User selected an Autocomplete, so we fill directly. 216 // User selected an Autocomplete, so we fill directly.
216 host->Send(new AutofillMsg_SetNodeText( 217 host->Send(new AutofillMsg_SetNodeText(
217 host->GetRoutingID(), 218 host->GetRoutingID(),
218 value)); 219 value));
219 } else { 220 } else {
220 FillAutofillFormData(unique_id, false); 221 FillAutofillFormData(unique_id, false);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 384
384 385
385 #if defined(OS_MACOSX) 386 #if defined(OS_MACOSX)
386 387
387 void AutofillExternalDelegate::CreateForWebContentsAndManager( 388 void AutofillExternalDelegate::CreateForWebContentsAndManager(
388 content::WebContents* web_contents, 389 content::WebContents* web_contents,
389 AutofillManager* autofill_manager) { 390 AutofillManager* autofill_manager) {
390 } 391 }
391 392
392 #endif 393 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698