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

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

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.h ('k') | chrome/browser/autofill/autofill_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698