| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autofill_external_delegate.h" | 6 #include "chrome/browser/autofill/autofill_external_delegate.h" |
| 7 #include "chrome/browser/autofill/autofill_manager.h" | 7 #include "chrome/browser/autofill/autofill_manager.h" |
| 8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 void AutofillExternalDelegate::SelectAutofillSuggestionAtIndex(int listIndex) { | 27 void AutofillExternalDelegate::SelectAutofillSuggestionAtIndex(int listIndex) { |
| 28 RenderViewHost* host = | 28 RenderViewHost* host = |
| 29 tab_contents_wrapper_->tab_contents()->render_view_host(); | 29 tab_contents_wrapper_->tab_contents()->render_view_host(); |
| 30 host->Send(new AutofillMsg_SelectAutofillSuggestionAtIndex( | 30 host->Send(new AutofillMsg_SelectAutofillSuggestionAtIndex( |
| 31 host->routing_id(), | 31 host->routing_id(), |
| 32 listIndex)); | 32 listIndex)); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void AutofillExternalDelegate::OnQuery(int query_id, | 35 void AutofillExternalDelegate::OnQuery(int query_id, |
| 36 const webkit_glue::FormData& form, | 36 const webkit::forms::FormData& form, |
| 37 const webkit_glue::FormField& field, | 37 const webkit::forms::FormField& field, |
| 38 const gfx::Rect& bounds, | 38 const gfx::Rect& bounds, |
| 39 bool display_warning_if_disabled) { | 39 bool display_warning_if_disabled) { |
| 40 autofill_query_field_ = field; | 40 autofill_query_field_ = field; |
| 41 display_warning_if_disabled_ = display_warning_if_disabled; | 41 display_warning_if_disabled_ = display_warning_if_disabled; |
| 42 autofill_query_id_ = query_id; | 42 autofill_query_id_ = query_id; |
| 43 | 43 |
| 44 OnQueryPlatformSpecific(query_id, form, field); | 44 OnQueryPlatformSpecific(query_id, form, field); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void AutofillExternalDelegate::DidEndTextFieldEditing() { | 47 void AutofillExternalDelegate::DidEndTextFieldEditing() { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // none, so all platforms use the default. | 135 // none, so all platforms use the default. |
| 136 | 136 |
| 137 #if !defined(OS_ANDROID) | 137 #if !defined(OS_ANDROID) |
| 138 | 138 |
| 139 AutofillExternalDelegate* AutofillExternalDelegate::Create( | 139 AutofillExternalDelegate* AutofillExternalDelegate::Create( |
| 140 TabContentsWrapper*, AutofillManager*) { | 140 TabContentsWrapper*, AutofillManager*) { |
| 141 return NULL; | 141 return NULL; |
| 142 } | 142 } |
| 143 | 143 |
| 144 #endif | 144 #endif |
| OLD | NEW |