OLD | NEW |
---|---|
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 // No suggestions, any popup currently showing is obsolete. | 103 // No suggestions, any popup currently showing is obsolete. |
104 HideAutofillPopup(); | 104 HideAutofillPopup(); |
105 return; | 105 return; |
106 } | 106 } |
107 | 107 |
108 // Send to display. | 108 // Send to display. |
109 if (autofill_query_field_.is_focusable) { | 109 if (autofill_query_field_.is_focusable) { |
110 popup_visible_ = true; | 110 popup_visible_ = true; |
111 ApplyAutofillSuggestions(values, labels, icons, ids); | 111 ApplyAutofillSuggestions(values, labels, icons, ids); |
112 | 112 |
113 tab_contents_->autofill_manager()->OnDidShowAutofillSuggestions( | 113 autofill_manager_->OnDidShowAutofillSuggestions( |
Jói
2012/10/01 10:45:19
Is your modification to autofill_external_delegate
Avi (use Gerrit)
2012/10/01 15:32:26
What are you referring to? I'm using git so "missi
| |
114 has_autofill_item && !has_shown_autofill_popup_for_current_edit_); | 114 has_autofill_item && !has_shown_autofill_popup_for_current_edit_); |
115 has_shown_autofill_popup_for_current_edit_ |= has_autofill_item; | 115 has_shown_autofill_popup_for_current_edit_ |= has_autofill_item; |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 void AutofillExternalDelegate::OnShowPasswordSuggestions( | 119 void AutofillExternalDelegate::OnShowPasswordSuggestions( |
120 const std::vector<string16>& suggestions, | 120 const std::vector<string16>& suggestions, |
121 const webkit::forms::FormField& field, | 121 const webkit::forms::FormField& field, |
122 const gfx::Rect& bounds) { | 122 const gfx::Rect& bounds) { |
123 autofill_query_field_ = field; | 123 autofill_query_field_ = field; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
348 | 348 |
349 | 349 |
350 #if defined(OS_MACOSX) | 350 #if defined(OS_MACOSX) |
351 | 351 |
352 AutofillExternalDelegate* AutofillExternalDelegate::Create( | 352 AutofillExternalDelegate* AutofillExternalDelegate::Create( |
353 TabContents*, AutofillManager*) { | 353 TabContents*, AutofillManager*) { |
354 return NULL; | 354 return NULL; |
355 } | 355 } |
356 | 356 |
357 #endif | 357 #endif |
OLD | NEW |